equal
deleted
inserted
replaced
1 // Copyright 2016 The Go Authors. All rights reserved. |
1 // Copyright 2016 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style |
2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. |
3 // license that can be found in the LICENSE file. |
4 |
|
5 // +build go1.7 |
|
6 |
4 |
7 // Package ctxhttp provides helper functions for performing context-aware HTTP requests. |
5 // Package ctxhttp provides helper functions for performing context-aware HTTP requests. |
8 package ctxhttp // import "golang.org/x/net/context/ctxhttp" |
6 package ctxhttp // import "golang.org/x/net/context/ctxhttp" |
9 |
7 |
10 import ( |
8 import ( |
|
9 "context" |
11 "io" |
10 "io" |
12 "net/http" |
11 "net/http" |
13 "net/url" |
12 "net/url" |
14 "strings" |
13 "strings" |
15 |
|
16 "golang.org/x/net/context" |
|
17 ) |
14 ) |
18 |
15 |
19 // Do sends an HTTP request with the provided http.Client and returns |
16 // Do sends an HTTP request with the provided http.Client and returns |
20 // an HTTP response. |
17 // an HTTP response. |
21 // |
18 // |