Home | History | Annotate | Download | only in http

Lines Matching refs:Response

67 	// method returns both the previous Response (with its Body
71 // then the most recent response is returned with its body
82 // of every inbound Response. The Jar is consulted for every
91 // redirects, and reading the response body. The timer remains
93 // interrupt reading of the Response.Body.
113 // single HTTP transaction, obtaining the Response for a given Request.
119 // a Response for the provided Request.
121 // RoundTrip should not attempt to interpret the response. In
123 // a response, regardless of the response's HTTP status code.
125 // response. Similarly, RoundTrip should not attempt to
139 RoundTrip(*Request) (*Response, error)
167 func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
201 func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
253 log.Printf("RoundTripper returned a response & error; ignoring response")
257 // response looks like HTTP and give a more helpful error.
260 err = errors.New("http: server gave HTTP response to HTTPS client")
345 // Get issues a GET to the specified URL. If the response is one of
356 // was an HTTP protocol error. A non-2xx response doesn't cause an
366 func Get(url string) (resp *Response, err error) {
370 // Get issues a GET to the specified URL. If the response is one of the
381 // or if there was an HTTP protocol error. A non-2xx response doesn't
388 func (c *Client) Get(url string) (resp *Response, err error) {
400 // is not sent and the most recent response is returned with its body
402 var ErrUseLastResponse = errors.New("net/http: use last response")
416 func redirectBehavior(reqMethod string, resp *Response, ireq *Request) (redirectMethod string, shouldRedirect, includeBody bool) {
449 // return this response to the user instead of an
457 // Do sends an HTTP request and returns an HTTP response, following
466 // If the returned error is nil, the Response will contain a non-nil
475 // On error, any Response can be ignored. A non-nil Response with a
477 // the returned Response.Body is already closed.
490 func (c *Client) Do(req *Request) (*Response, error) {
499 resp *Response
527 return nil, uerr(fmt.Errorf("%d response missing Location header", resp.StatusCode))
536 Response: resp,
564 // previous response, without closing its
570 // Close the previous response's body. But
582 // Special case for Go 1 compatibility: return both the response
647 resp := req.Response // The response that caused the upcoming redirect
699 func Post(url string, contentType string, body io.Reader) (resp *Response, err error) {
714 func (c *Client) Post(url string, contentType string, body io.Reader) (resp *Response, err error) {
736 func PostForm(url string, data url.Values) (resp *Response, err error) {
751 func (c *Client) PostForm(url string, data url.Values) (resp *Response, err error) {
755 // Head issues a HEAD to the specified URL. If the response is one of
766 func Head(url string) (resp *Response, err error) {
770 // Head issues a HEAD to the specified URL. If the response is one of the
779 func (c *Client) Head(url string) (resp *Response, err error) {