Home | History | Annotate | Download | only in http

Lines Matching refs:Response

344 func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
468 http2errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers")
2108 func http2setResponseUncompressed(res *Response) { res.Uncompressed = true }
2703 // bodyAllowedForStatus reports whether a given response status code
2728 var http2errTimeout error = &http2httpError{msg: "http2: timeout awaiting response headers", timeout: true}
3628 // writeDataFromHandler writes DATA response frames from a handler on
4818 // response header is written. It notes that a header will need to be
4819 // written in the trailers at the end of the response.
4837 // HEADER response.
4923 // the response trailers, and not the response headers. The prefix
5414 // it will be used to set http.Response.TLS.
5429 // its own and gets a gzipped response, it's transparently
5430 // decoded in the Response.Body. However, if the user
5441 // of response headers are allow. Unlike the http2 spec, zero here
5545 bufPipe http2pipe // buffered pipe with the flow-controlled response payload
5548 on100 func() // optional code to run if get a 100 continue response
5563 firstByte bool // got the first response byte
5568 resTrailer *Header // client's Response.Trailer
5652 func (t *http2Transport) RoundTrip(req *Request) (*Response, error) {
5678 func (t *http2Transport) RoundTripOpt(req *Request, opt http2RoundTripOpt) (*Response, error) {
5723 // response headers. It is always called with a non-nil error.
6049 func (cc *http2ClientConn) RoundTrip(req *Request) (*Response, error) {
6131 handleReadLoopResponse := func(re http2resAndError) (*Response, error) {
6498 res *Response
6677 cc.logf("Transport: unhandled response frame type %T", f)
6740 func (rl *http2clientConnReadLoop) handleResponse(cs *http2clientStream, f *http2MetaHeadersFrame) (*Response, error) {
6764 res := &Response{
6850 // Response.Body. It is an io.ReadCloser. On Read, it reads from cs.body.
6917 var http2errClosedResponseBody = errors.New("http2: response body closed")
7225 http2errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit")
7260 func (rt http2erringRoundTripper) RoundTrip(*Request) (*Response, error) { return nil, rt.err }
7262 // gzipReader wraps a response body so it can lazily
7265 body io.ReadCloser // underlying Response.Body
7538 // for HTTP response headers or trailers from a server handler.