vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     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 //