| // Copyright 2016 Google LLC. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| // +build appengine | |
| package http | |
| import ( | |
| "context" | |
| "net/http" | |
| "google.golang.org/appengine/urlfetch" | |
| ) | |
| func init() { | |
| appengineUrlfetchHook = func(ctx context.Context) http.RoundTripper { | |
| return &urlfetch.Transport{Context: ctx} | |
| } | |
| } |