123456789101112131415161718192021 |
- // Copyright 2016 Google LLC.
- // Use of this source code is governed by a BSD-style
- // license that can be found in the LICENSE file.
- //go:build appengine
- // +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}
- }
- }
|