Home | History | Annotate | Download | only in http

Lines Matching refs:Response

47 	// method returns both the previous Response and
62 // redirects, and reading the response body. The timer remains
64 // interrupt reading of the Response.Body.
79 // single HTTP transaction, obtaining the Response for a given Request.
85 // the Response for the request req. RoundTrip should not
86 // attempt to interpret the response. In particular,
87 // RoundTrip must return err == nil if it obtained a response,
88 // regardless of the response's HTTP status code. A non-nil
89 // err should be reserved for failure to obtain a response.
98 RoundTrip(*Request) (*Response, error)
130 // bufio.Reader through which we read the response, and the underlying
137 func (c *Client) send(req *Request) (*Response, error) {
155 // Do sends an HTTP request and returns an HTTP response, following
160 // A non-2xx response doesn't cause an error.
173 func (c *Client) Do(req *Request) (resp *Response, err error) {
192 func send(req *Request, t RoundTripper) (resp *Response, err error) {
223 log.Printf("RoundTripper returned a response & error; ignoring response")
260 // Get issues a GET to the specified URL. If the response is one of
270 // was an HTTP protocol error. A non-2xx response doesn't cause an
280 func Get(url string) (resp *Response, err error) {
284 // Get issues a GET to the specified URL. If the response is one of the
294 // or if there was an HTTP protocol error. A non-2xx response doesn't
301 func (c *Client) Get(url string) (resp *Response, err error) {
311 func (c *Client) doFollowingRedirects(ireq *Request, shouldRedirect func(int) bool) (resp *Response, err error) {
399 err = fmt.Errorf("%d response missing Location header", resp.StatusCode)
424 // Special case for Go 1 compatibility: return both the response
453 func Post(url string, bodyType string, body io.Reader) (resp *Response, err error) {
465 func (c *Client) Post(url string, bodyType string, body io.Reader) (resp *Response, err error) {
484 func PostForm(url string, data url.Values) (resp *Response, err error) {
496 func (c *Client) PostForm(url string, data url.Values) (resp *Response, err error) {
500 // Head issues a HEAD to the specified URL. If the response is one of
510 func Head(url string) (resp *Response, err error) {
514 // Head issues a HEAD to the specified URL. If the response is one of the
522 func (c *Client) Head(url string) (resp *Response, err error) {