type net/http.Response
85 uses
net/http (current package)
client.go#L141: RoundTrip(*Request) (*Response, error)
client.go#L174: func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L211: func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L452: func Get(url string) (resp *Response, err error) {
client.go#L479: func (c *Client) Get(url string) (resp *Response, err error) {
client.go#L507: func redirectBehavior(reqMethod string, resp *Response, ireq *Request) (redirectMethod string, shouldRedirect, includeBody bool) {
client.go#L586: func (c *Client) Do(req *Request) (*Response, error) {
client.go#L590: var testHookClientDoResult func(retres *Response, reterr error)
client.go#L592: func (c *Client) do(req *Request) (retres *Response, reterr error) {
client.go#L608: resp *Response
client.go#L842: func Post(url, contentType string, body io.Reader) (resp *Response, err error) {
client.go#L860: func (c *Client) Post(url, contentType string, body io.Reader) (resp *Response, err error) {
client.go#L885: func PostForm(url string, data url.Values) (resp *Response, err error) {
client.go#L903: func (c *Client) PostForm(url string, data url.Values) (resp *Response, err error) {
client.go#L921: func Head(url string) (resp *Response, err error) {
client.go#L937: func (c *Client) Head(url string) (resp *Response, err error) {
filetransport.go#L53: func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
filetransport.go#L68: func newPopulateResponseWriter() (*populateResponse, <-chan *Response) {
filetransport.go#L71: ch: make(chan *Response),
filetransport.go#L73: res: &Response{
filetransport.go#L89: res *Response
filetransport.go#L90: ch chan *Response
h2_bundle.go#L7759: func (t *http2unencryptedTransport) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L7882: res *Response // set if respHeaderRecv is closed
h2_bundle.go#L8013: func (t *http2Transport) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L8042: func (t *http2Transport) RoundTripOpt(req *Request, opt http2RoundTripOpt) (*Response, error) {
h2_bundle.go#L8766: func (cc *http2ClientConn) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L8770: func (cc *http2ClientConn) roundTrip(req *Request, streamf func(*http2clientStream)) (*Response, error) {
h2_bundle.go#L8819: handleResponseHeaders := func() (*Response, error) {
h2_bundle.go#L9756: res *Response
h2_bundle.go#L10059: func (rl *http2clientConnReadLoop) handleResponse(cs *http2clientStream, f *http2MetaHeadersFrame) (*Response, error) {
h2_bundle.go#L10076: res := &Response{
h2_bundle.go#L10810: func (rt http2erringRoundTripper) RoundTrip(*Request) (*Response, error) { return nil, rt.err }
h2_bundle.go#L10871: func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
request.go#L323: Response *Response
response.go#L35: type Response struct {
response.go#L125: func (r *Response) Cookies() []*Cookie {
response.go#L137: func (r *Response) Location() (*url.URL, error) {
response.go#L154: func ReadResponse(r *bufio.Reader, req *Request) (*Response, error) {
response.go#L156: resp := &Response{
response.go#L224: func (r *Response) ProtoAtLeast(major, minor int) bool {
response.go#L245: func (r *Response) Write(w io.Writer) error {
response.go#L264: r1 := new(Response)
response.go#L336: func (r *Response) closeBody() {
response.go#L349: func (r *Response) bodyIsWritable() bool {
response.go#L356: func (r *Response) isProtocolSwitch() bool {
roundtrip.go#L20: func badRoundTrip(*Transport, *Request) (*Response, error)
roundtrip.go#L29: func (t *Transport) RoundTrip(req *Request) (*Response, error) {
transfer.go#L111: case *Response:
transfer.go#L497: case *Response:
transfer.go#L554: case *Response:
transfer.go#L595: case *Response:
transfer.go#L947: case *Response:
transport.go#L133: OnProxyConnectResponse func(ctx context.Context, proxyURL *url.URL, connectReq *Request, connectRes *Response) error
transport.go#L582: func (t *Transport) roundTrip(req *Request) (_ *Response, err error) {
transport.go#L691: var resp *Response
transport.go#L1860: resp *Response
transport.go#L2288: var resp *Response
transport.go#L2454: func (pc *persistConn) readResponse(rc requestAndChan, trace *httptrace.ClientTrace) (resp *Response, err error) {
transport.go#L2667: res *Response // else use this response (see res method)
transport.go#L2740: func (pc *persistConn) roundTrip(req *transportRequest) (resp *Response, err error) {
transport.go#L2808: handleResponse := func(re responseAndError) (*Response, error) {
net/http/httputil
dump.go#L305: func DumpResponse(resp *http.Response, body bool) ([]byte, error) {
persist.go#L175: func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error {
persist.go#L363: func (cc *ClientConn) Read(req *http.Request) (resp *http.Response, err error) {
persist.go#L425: func (cc *ClientConn) Do(req *http.Request) (*http.Response, error) {
reverseproxy.go#L192: ModifyResponse func(*http.Response) error
reverseproxy.go#L320: func (p *ReverseProxy) modifyResponse(rw http.ResponseWriter, res *http.Response, req *http.Request) bool {
reverseproxy.go#L596: func (p *ReverseProxy) flushInterval(res *http.Response) time.Duration {
reverseproxy.go#L737: func (p *ReverseProxy) handleUpgradeResponse(rw http.ResponseWriter, req *http.Request, res *http.Response) {
go.pact.im/x/httpclient
httpclient.go#L12: Do(req *http.Request) (*http.Response, error)
go.pact.im/x/httpclient/mockhttpclient
mockhttpclient.go#L43: func (m *MockClient) Do(req *http.Request) (*http.Response, error) {
mockhttpclient.go#L46: ret0, _ := ret[0].(*http.Response)
golang.org/x/net/http2
transport.go#L337: func (t *unencryptedTransport) RoundTrip(req *http.Request) (*http.Response, error) {
transport.go#L461: res *http.Response // set if respHeaderRecv is closed
transport.go#L591: func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
transport.go#L620: func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) {
transport.go#L1314: func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) {
transport.go#L1318: func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) (*http.Response, error) {
transport.go#L1349: handleResponseHeaders := func() (*http.Response, error) {
transport.go#L2071: res *http.Response
transport.go#L2381: func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFrame) (*http.Response, error) {
transport.go#L2398: res := &http.Response{
transport.go#L3129: func (rt erringRoundTripper) RoundTrip(*http.Request) (*http.Response, error) { return nil, rt.err }
transport.go#L3190: func (rt noDialH2RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {