commit | 8a098771176331fd2afc6d135240402617dc0f5e | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Fri Jan 23 18:45:29 2015 -0800 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Sat Jan 24 05:52:31 2015 +0000 |
tree | 73577845f204333c455b6e59993088648ec5b2b3 | |
parent | 3f7dcd0e7a9cbcc8199def5ec2b0be34261ff67c [diff] |
googleapi: remove size sniffing, send chunked multipart/mime request bodies In the past, the Google API server required Content-Lengths on requests and didn't accept chunked uploads. That appears to be fixed now, so remove a bunch of complexity in trying to calculate the size of request bodies, the worst of which involved slurping the whole content into memory (which might fail and/or use all available memory). Change-Id: I8995204d604baf08237593b7a077f4dbfd5b7b11 Reviewed-on: https://code-review.googlesource.com/1870 Reviewed-by: Glenn Lewis <gmlewis@google.com>
These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available “new style” Google APIs.
Announcement email: http://groups.google.com/group/golang-nuts/browse_thread/thread/6c7281450be9a21e
Getting started documentation:
http://code.google.com/p/google-api-go-client/wiki/GettingStarted
In summary:
$ go get google.golang.org/api/storage/v1 $ go get google.golang.org/api/tasks/v1 $ go get google.golang.org/api/moderator/v1 ... etc ...
For docs, see e.g.:
https://godoc.org/google.golang.org/api/storage/v1
The package of a given import is the second-to-last component, before the version number.
For examples, see:
https://github.com/google/google-api-go-client/tree/master/examples
For support, use the golang-nuts@ mailing list: