type net/http.Response
192 uses
net/http (current package)
client.go#L141: RoundTrip(*Request) (*Response, error)
client.go#L169: func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L203: func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L445: func Get(url string) (resp *Response, err error) {
client.go#L469: func (c *Client) Get(url string) (resp *Response, err error) {
client.go#L497: func redirectBehavior(reqMethod string, resp *Response, ireq *Request) (redirectMethod string, shouldRedirect, includeBody bool) {
client.go#L584: func (c *Client) Do(req *Request) (*Response, error) {
client.go#L588: var testHookClientDoResult func(retres *Response, reterr error)
client.go#L590: func (c *Client) do(req *Request) (retres *Response, reterr error) {
client.go#L605: resp *Response
client.go#L824: func Post(url, contentType string, body io.Reader) (resp *Response, err error) {
client.go#L839: func (c *Client) Post(url, contentType string, body io.Reader) (resp *Response, err error) {
client.go#L861: func PostForm(url string, data url.Values) (resp *Response, err error) {
client.go#L876: func (c *Client) PostForm(url string, data url.Values) (resp *Response, err error) {
client.go#L891: func Head(url string) (resp *Response, err error) {
client.go#L904: func (c *Client) Head(url string) (resp *Response, err error) {
filetransport.go#L34: func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
filetransport.go#L49: func newPopulateResponseWriter() (*populateResponse, <-chan *Response) {
filetransport.go#L52: ch: make(chan *Response),
filetransport.go#L54: res: &Response{
filetransport.go#L70: res *Response
filetransport.go#L71: ch chan *Response
h2_bundle.go#L6941: func (t *http2Transport) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L6967: func (t *http2Transport) RoundTripOpt(req *Request, opt http2RoundTripOpt) (*Response, error) {
h2_bundle.go#L7530: func (cc *http2ClientConn) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L7535: func (cc *http2ClientConn) roundTrip(req *Request) (res *Response, gotErrAfterReqBodyWrite bool, err error) {
h2_bundle.go#L7640: handleReadLoopResponse := func(re http2resAndError) (*Response, bool, error) {
h2_bundle.go#L8188: res *Response
h2_bundle.go#L8460: func (rl *http2clientConnReadLoop) handleResponse(cs *http2clientStream, f *http2MetaHeadersFrame) (*Response, error) {
h2_bundle.go#L8477: res := &Response{
h2_bundle.go#L9058: func (rt http2erringRoundTripper) RoundTrip(*Request) (*Response, error) { return nil, rt.err }
h2_bundle.go#L9196: func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
request.go#L316: 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#L265: r1 := new(Response)
response.go#L337: func (r *Response) closeBody() {
response.go#L350: func (r *Response) bodyIsWritable() bool {
response.go#L357: func (r *Response) isProtocolSwitch() bool {
roundtrip.go#L16: func (t *Transport) RoundTrip(req *Request) (*Response, error) {
transfer.go#L108: case *Response:
transfer.go#L488: case *Response:
transfer.go#L545: case *Response:
transfer.go#L586: case *Response:
transfer.go#L944: case *Response:
transport.go#L502: func (t *Transport) roundTrip(req *Request) (*Response, error) {
transport.go#L586: var resp *Response
transport.go#L1686: resp *Response
transport.go#L2096: var resp *Response
transport.go#L2265: func (pc *persistConn) readResponse(rc requestAndChan, trace *httptrace.ClientTrace) (resp *Response, err error) {
transport.go#L2456: res *Response // else use this response (see res method)
transport.go#L2524: func (pc *persistConn) roundTrip(req *transportRequest) (resp *Response, err error) {
net/http/httptest
recorder.go#L45: result *http.Response // cache of Result's return value
recorder.go#L162: func (rw *ResponseRecorder) Result() *http.Response {
recorder.go#L169: res := &http.Response{
net/http/httputil
dump.go#L308: 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#L85: ModifyResponse func(*http.Response) error
reverseproxy.go#L200: func (p *ReverseProxy) modifyResponse(rw http.ResponseWriter, res *http.Response, req *http.Request) bool {
reverseproxy.go#L400: func (p *ReverseProxy) flushInterval(res *http.Response) time.Duration {
reverseproxy.go#L544: func (p *ReverseProxy) handleUpgradeResponse(rw http.ResponseWriter, req *http.Request, res *http.Response) {
cloud.google.com/go/storage
reader.go#L137: reopen := func(seen int64) (*http.Response, error) {
reader.go#L149: var res *http.Response
reader.go#L297: func decompressiveTranscoding(res *http.Response) bool {
reader.go#L303: func uncompressedByServer(res *http.Response) bool {
reader.go#L310: func parseCRC32c(res *http.Response) (uint32, bool) {
reader.go#L338: reopen func(seen int64) (*http.Response, error)
github.com/aws/aws-sdk-go/aws/corehandlers
handlers.go#L119: func sendFollowRedirects(r *request.Request) (*http.Response, error) {
handlers.go#L123: func sendWithoutFollowRedirects(r *request.Request) (*http.Response, error) {
handlers.go#L145: r.HTTPResponse = &http.Response{
handlers.go#L156: r.HTTPResponse = &http.Response{
github.com/aws/aws-sdk-go/aws/ec2metadata
service.go#L145: r.HTTPResponse = &http.Response{
github.com/aws/aws-sdk-go/aws/request
request.go#L56: HTTPResponse *http.Response
github.com/aws/aws-sdk-go/private/protocol
payload.go#L32: HTTPResponse: &http.Response{
unmarshal_error.go#L19: UnmarshalError(*http.Response, ResponseMetadata) (error, error)
github.com/aws/aws-sdk-go/private/protocol/rest
unmarshal.go#L55: func UnmarshalResponse(resp *http.Response, data interface{}, lowerCaseHeaderMaps bool) error {
unmarshal.go#L116: func unmarshalLocationElements(resp *http.Response, v reflect.Value, lowerCaseHeaderMaps bool) error {
github.com/go-git/go-git/v5/plumbing/transport/http
common.go#L145: func (s *session) ModifyEndpointIfRedirect(res *http.Response) {
common.go#L251: Response *http.Response
common.go#L255: func NewErr(r *http.Response) error {
receive_pack.go#L80: ) (*http.Response, error) {
upload_pack.go#L78: ) (*http.Response, error) {
github.com/prometheus/client_golang/prometheus/promhttp
instrument_client.go#L28: type RoundTripperFunc func(req *http.Request) (*http.Response, error)
instrument_client.go#L31: func (rt RoundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) {
instrument_client.go#L41: return RoundTripperFunc(func(r *http.Request) (*http.Response, error) {
instrument_client.go#L63: return RoundTripperFunc(func(r *http.Request) (*http.Response, error) {
instrument_client.go#L91: return RoundTripperFunc(func(r *http.Request) (*http.Response, error) {
instrument_client.go#L136: return RoundTripperFunc(func(r *http.Request) (*http.Response, error) {
go.opencensus.io/plugin/ochttp
client.go#L68: func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
client_stats.go#L35: func (t statsTransport) RoundTrip(req *http.Request) (*http.Response, error) {
trace.go#L55: func (t *traceTransport) RoundTrip(req *http.Request) (*http.Response, error) {
trace.go#L171: func responseAttrs(resp *http.Response) []trace.Attribute {
golang.org/x/net/context/ctxhttp
ctxhttp.go#L23: func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
ctxhttp.go#L41: func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) {
ctxhttp.go#L50: func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) {
ctxhttp.go#L59: func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) {
ctxhttp.go#L69: func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) {
golang.org/x/net/http2
transport.go#L438: func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
transport.go#L464: func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) {
transport.go#L1027: func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) {
transport.go#L1032: func (cc *ClientConn) roundTrip(req *http.Request) (res *http.Response, gotErrAfterReqBodyWrite bool, err error) {
transport.go#L1137: handleReadLoopResponse := func(re resAndError) (*http.Response, bool, error) {
transport.go#L1685: res *http.Response
transport.go#L1957: func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFrame) (*http.Response, error) {
transport.go#L1974: res := &http.Response{
transport.go#L2554: func (rt erringRoundTripper) RoundTrip(*http.Request) (*http.Response, error) { return nil, rt.err }
transport.go#L2692: func (rt noDialH2RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
golang.org/x/oauth2
token.go#L170: Response *http.Response
transport.go#L32: func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
golang.org/x/oauth2/internal
token.go#L288: Response *http.Response
golang.org/x/pkgsite/internal/proxy
client.go#L270: func responseError(r *http.Response, fetchDisabled bool) error {
golang.org/x/pkgsite/internal/source
source.go#L234: func (c *Client) doURL(ctx context.Context, method, url string, only200 bool) (_ *http.Response, err error) {
google.golang.org/api/googleapi
googleapi.go#L130: func CheckResponse(res *http.Response) error {
googleapi.go#L169: func CheckMediaResponse(res *http.Response) error {
googleapi.go#L313: func CloseBody(res *http.Response) {
google.golang.org/api/googleapi/transport
apikey.go#L31: func (t *APIKey) RoundTrip(req *http.Request) (*http.Response, error) {
google.golang.org/api/internal/gensupport
resumable.go#L73: func (rx *ResumableUpload) doUploadRequest(ctx context.Context, data io.Reader, off, size int64, final bool) (*http.Response, error) {
resumable.go#L106: func statusResumeIncomplete(resp *http.Response) bool {
resumable.go#L127: func (rx *ResumableUpload) transferChunk(ctx context.Context) (*http.Response, error) {
resumable.go#L164: func (rx *ResumableUpload) Upload(ctx context.Context) (resp *http.Response, err error) {
resumable.go#L170: var prepareReturn = func(resp *http.Response, err error) (*http.Response, error) {
send.go#L19: type Hook func(ctx context.Context, req *http.Request) func(resp *http.Response)
send.go#L36: func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L46: post := make([]func(resp *http.Response), len(hooks))
send.go#L64: func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L86: func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L96: post := make([]func(resp *http.Response), len(hooks))
send.go#L114: func sendAndRetry(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L119: var resp *http.Response
send.go#L167: func DecodeResponse(target interface{}, res *http.Response) error {
google.golang.org/api/storage/v1
storage-gen.go#L2445: func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L2593: func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L2760: func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L2933: func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L3094: func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L3268: func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L3454: func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L3633: func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L3839: func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L4056: func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L4313: func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L4523: func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L4758: func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L4987: func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L5162: func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L5402: func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L5614: func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L5731: func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L5879: func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6047: func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6237: func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6410: func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6584: func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6756: func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L6904: func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7074: func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7249: func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7422: func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7594: func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7785: func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L7982: func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L8167: func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L8365: func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L8600: func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L8943: func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L9271: func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L9504: func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L9534: func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
storage-gen.go#L9754: func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L10071: func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L10444: func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L10761: func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L11153: func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L11456: func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L11656: func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L11917: func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L12235: func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L12451: func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L12601: func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L12736: func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L12936: func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L13131: func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, error) {
storage-gen.go#L13308: func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, error) {
google.golang.org/api/transport/http
dial.go#L136: func (t *parameterTransport) RoundTrip(req *http.Request) (*http.Response, error) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |