Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Sebastiaan van Stijn a1ae214131
remove golang.org/x/net dependency (#295)
* remove golang.org/x/net dependency

The golang.org/x/net/context package is an alias for stdlib context
since go1.7 (see https://go-review.googlesource.com/72570)

This patch replaces all uses of it for stdlib context.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* rename App Engine context type to remove import aliases

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

---------

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-01 10:29:44 -08:00
Ross Light a2e0dc8297 remote_api: don't modify http.Client parameter (#94)
Avoids potential aliasing bugs when passing in something like
http.DefaultClient.
2017-10-11 14:50:12 -07:00
Ross Light 24e4144ec9 remote_api: add long-lived Client type (#87)
Allows for contexts to be created inside of a request instead of
deriving from a single application-scoped context.

Fixes #86
2017-09-21 10:06:48 -07:00
Chris Broadfoot a2c54d2174 remote_api: don't check auth for dev_appserver (#43) 2017-01-20 16:08:17 -08:00
Chris Broadfoot 46e81a3981 Accept both the cloud-platform and appengine.apis scopes for the
Remote API handler.

* Change the user.CurrentOAuth function's "scope" parameter to a
  variadic argument.
* Require either cloud-platform or appengine.apis scopes for handling
  Remote API requests.

Change-Id: Ia5de483d0e598df5d847ae54cc3afa725b18a4ac
2015-10-05 19:46:08 -07:00
Chris Broadfoot 5d51656393 Add missing copyright headers.
Change-Id: I4f3f10c41c94a975cc9d451fad9e3ae01117cd59
2015-08-25 23:55:53 +00:00
David Symonds d1e7e222a2 Remove internal.CallOptions entirely, and use the context's timeout for API calls.
Change-Id: I3fef83cf331c857e6c8c552eed89a34cd0ea6e1c
2015-01-28 16:44:06 +11:00
David Symonds 1c3fdc51e1 Convert tree from appengine.Context to context.Context.
Most well-formed application code will require minimal changes:
	- The type is now golang.org/x/net/context.(*Context).
	- c := appengine.NewContext(r) still works.
	- Most API calls still look exactly the same.
	- Logging now uses the google.golang.org/appengine/log package.

Change-Id: I7fa089efa8d0b1e7beeeb6233a98fe054020b1fc
2015-01-21 09:10:09 +11:00
Michael McGreevy c61a7310fc Open up remote_api to forward requests for more services.
This aligns the set of supported services for the Go runtime with
those supported by the python runtime.

Change-Id: I9f51e98aefb796e45d28345045c8d6b94da3b165
2015-01-20 10:54:08 +11:00
David Symonds c98f627282 Update code and regenerate .pb.go files for new location of goprotobuf.
Change-Id: I1d64ba6bf13fd7fc2fa9c4c7addc7163ef8a26ee
2014-11-25 11:47:41 +11:00
Dave Day d510d6ed93 Add canonical import comments for each package
Change-Id: I0bf39b2728f8403008f9a1d6d3faba06f1c77ac9
2014-11-13 17:19:19 +11:00
Dave Day 45c5adc35c remote_api: allow localhost:port and fix app ID regexp
Change-Id: Ice06f3d69ead72991286492a8a097f91da160874
2014-05-15 14:36:15 +10:00
Dave Day cd1d2dd002 appengine/remote_api: Fix old-style appengine_internal uses
Change-Id: I3b69c00f21a9156ad55dca154e93324e44dfae8b
2014-02-05 15:29:03 +11:00
David Symonds 9e7af23396 Change import paths from github.com/golang/appengine to google.golang.org/appengine.
Change-Id: I653ceae860405a5e2d699908eb975a97ee64495b
2014-02-05 11:47:53 +11:00
David Symonds 00f8185563 Add remote_api package.
Change-Id: I624d9ec4f08519be19a9f0a25d88dc587d0b3a58
2014-02-04 16:39:15 +11:00