add way to specify http.Client

Bug #884305 reported by Gus Soden
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
goamz
Confirmed
Undecided
Unassigned

Bug Description

The application should have option to specify the http.Client used for HTTP requests. The goamz packages currently use the http.DefaultClient. This client cannot be used in all environments.

In my case, I am trying to store data to S3 from a Google App Engine application. HTTP client requests in this environment must use a client obtained from the App Engine server request context.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Hmm, quite interesting. Do you have some sample code?

Revision history for this message
Gus Soden (augustsoden) wrote :

See the urfetch documentation (http://code.google.com/appengine/docs/go/urlfetch/overview.html) for examples of using an http.Client obtained from the request context.

Revision history for this message
Gus Soden (augustsoden) wrote :

We switched to another package for Amazon web services. We no longer need this feature.

Revision history for this message
Andrew E. Falcon (aefalcon) wrote :

In order to get goamz working with my own GAE app, I've made the changes in lp:~aefalcon/goamz/goamz-client .

Revision history for this message
Matt Joiner (anacrolix) wrote :

Gus what package did you switch to?

Matt Joiner (anacrolix)
Changed in goamz:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.