type net/http.Request
230 uses
net/http (current package)
client.go#L77: CheckRedirect func(req *Request, via []*Request) error
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#L233: req = new(Request)
client.go#L320: func knownRoundTripperImpl(rt RoundTripper, req *Request) bool {
client.go#L351: func setRequestCancel(req *Request, rt RoundTripper, deadline time.Time) (stopTimer func(), didTimeout func() bool) {
client.go#L384: type canceler interface{ CancelRequest(*Request) }
client.go#L500: func (c *Client) checkRedirect(req *Request, via []*Request) error {
client.go#L510: func redirectBehavior(reqMethod string, resp *Response, ireq *Request) (redirectMethod string, shouldRedirect, includeBody bool) {
client.go#L589: func (c *Client) Do(req *Request) (*Response, error) {
client.go#L595: func (c *Client) do(req *Request) (retres *Response, reterr error) {
client.go#L610: reqs []*Request
client.go#L663: req = &Request{
client.go#L753: func (c *Client) makeHeadersCopier(ireq *Request) func(req *Request, stripSensitiveHeaders bool) {
client.go#L767: return func(req *Request, stripSensitiveHeaders bool) {
client.go#L816: func defaultCheckRedirect(req *Request, via []*Request) error {
filetransport.go#L53: func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
fs.go#L134: func dirList(w ResponseWriter, r *Request, f File) {
fs.go#L240: func ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker) {
fs.go#L269: func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time, sizeFunc func() (int64, error), content io.ReadSeeker) {
fs.go#L478: func checkIfMatch(w ResponseWriter, r *Request) condResult {
fs.go#L508: func checkIfUnmodifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L527: func checkIfNoneMatch(w ResponseWriter, r *Request) condResult {
fs.go#L557: func checkIfModifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L578: func checkIfRange(w ResponseWriter, r *Request, modtime time.Time) condResult {
fs.go#L640: func checkPreconditions(w ResponseWriter, r *Request, modtime time.Time) (done bool, rangeHeader string) {
fs.go#L674: func serveFile(w ResponseWriter, r *Request, fs FileSystem, name string, redirect bool) {
fs.go#L777: func localRedirect(w ResponseWriter, r *Request, newPath string) {
fs.go#L806: func ServeFile(w ResponseWriter, r *Request, name string) {
fs.go#L840: func ServeFileFS(w ResponseWriter, r *Request, fsys fs.FS, name string) {
fs.go#L980: func (f *fileHandler) ServeHTTP(w ResponseWriter, r *Request) {
h2_bundle.go#L750: GetClientConn(req *Request, addr string) (*http2ClientConn, error)
h2_bundle.go#L779: func (p *http2clientConnPool) GetClientConn(req *Request, addr string) (*http2ClientConn, error) {
h2_bundle.go#L788: func (p *http2clientConnPool) getClientConn(req *Request, addr string, dialOnMiss bool) (*http2ClientConn, error) {
h2_bundle.go#L1009: func (p http2noDialClientConnPool) GetClientConn(req *Request, addr string) (*http2ClientConn, error) {
h2_bundle.go#L1017: func http2shouldRetryDial(call *http2dialCall, req *Request) bool {
h2_bundle.go#L4214: UpgradeRequest *Request
h2_bundle.go#L5908: func (sc *http2serverConn) upgradeRequest(req *Request) {
h2_bundle.go#L6017: func (sc *http2serverConn) newWriterAndRequest(st *http2stream, f *http2MetaHeadersFrame) (*http2responseWriter, *Request, error) {
h2_bundle.go#L6082: func (sc *http2serverConn) newWriterAndRequestNoBody(st *http2stream, rp http2requestParam) (*http2responseWriter, *Request, error) {
h2_bundle.go#L6137: req := &Request{
h2_bundle.go#L6157: func (sc *http2serverConn) newResponseWriter(st *http2stream, req *Request) *http2responseWriter {
h2_bundle.go#L6172: req *Request
h2_bundle.go#L6173: handler func(ResponseWriter, *Request)
h2_bundle.go#L6178: func (sc *http2serverConn) scheduleHandler(streamID uint32, rw *http2responseWriter, req *Request, handler func(ResponseWriter, *Request)) error {
h2_bundle.go#L6223: func (sc *http2serverConn) runHandler(rw *http2responseWriter, req *Request, handler func(ResponseWriter, *Request)) {
h2_bundle.go#L6253: func http2handleHeaderListTooLong(w ResponseWriter, r *Request) {
h2_bundle.go#L6419: req *Request
h2_bundle.go#L7116: return func(w ResponseWriter, r *Request) {
h2_bundle.go#L7696: func (t *http2Transport) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L7725: func (t *http2Transport) RoundTripOpt(req *Request, opt http2RoundTripOpt) (*Response, error) {
h2_bundle.go#L7789: func http2shouldRetryRequest(req *Request, err error) (*Request, error) {
h2_bundle.go#L8347: func http2commaSeparatedTrailers(req *Request) (string, error) {
h2_bundle.go#L8378: func http2checkConnHeaders(req *Request) error {
h2_bundle.go#L8394: func http2actualContentLength(req *Request) int64 {
h2_bundle.go#L8416: func (cc *http2ClientConn) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L8420: func (cc *http2ClientConn) roundTrip(req *Request, streamf func(*http2clientStream)) (*Response, error) {
h2_bundle.go#L8549: func (cs *http2clientStream) doRequest(req *Request, streamf func(*http2clientStream)) {
h2_bundle.go#L8562: func (cs *http2clientStream) writeRequest(req *Request, streamf func(*http2clientStream)) (err error) {
h2_bundle.go#L8691: func (cs *http2clientStream) encodeAndWriteHeaders(req *Request) error {
h2_bundle.go#L8915: func (cs *http2clientStream) writeRequestBody(req *Request) (err error) {
h2_bundle.go#L9107: func (cc *http2ClientConn) encodeHeaders(req *Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) {
h2_bundle.go#L10309: func (rt http2erringRoundTripper) RoundTrip(*Request) (*Response, error) { return nil, rt.err }
h2_bundle.go#L10348: func http2isConnectionCloseRequest(req *Request) bool {
h2_bundle.go#L10370: func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L10393: func http2traceGetConn(req *Request, hostPort string) {
h2_bundle.go#L10401: func http2traceGotConn(req *Request, cc *http2ClientConn, reused bool) {
request.go#L112: type Request struct {
request.go#L351: func (r *Request) Context() context.Context {
request.go#L367: func (r *Request) WithContext(ctx context.Context) *Request {
request.go#L371: r2 := new(Request)
request.go#L385: func (r *Request) Clone(ctx context.Context) *Request {
request.go#L389: r2 := new(Request)
request.go#L426: func (r *Request) ProtoAtLeast(major, minor int) bool {
request.go#L432: func (r *Request) UserAgent() string {
request.go#L437: func (r *Request) Cookies() []*Cookie {
request.go#L443: func (r *Request) CookiesNamed(name string) []*Cookie {
request.go#L457: func (r *Request) Cookie(name string) (*Cookie, error) {
request.go#L473: func (r *Request) AddCookie(c *Cookie) {
request.go#L490: func (r *Request) Referer() string {
request.go#L506: func (r *Request) MultipartReader() (*multipart.Reader, error) {
request.go#L517: func (r *Request) multipartReader(allowMixed bool) (*multipart.Reader, error) {
request.go#L538: func (r *Request) isH2Upgrade() bool {
request.go#L570: func (r *Request) Write(w io.Writer) error {
request.go#L580: func (r *Request) WriteProxy(w io.Writer) error {
request.go#L591: func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
request.go#L871: func NewRequest(method, url string, body io.Reader) (*Request, error) {
request.go#L898: func NewRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*Request, error) {
request.go#L921: req := &Request{
request.go#L982: func (r *Request) BasicAuth() (username, password string, ok bool) {
request.go#L1031: func (r *Request) SetBasicAuth(username, password string) {
request.go#L1067: func ReadRequest(b *bufio.Reader) (*Request, error) {
request.go#L1088: func readRequest(b *bufio.Reader) (req *Request, err error) {
request.go#L1092: req = new(Request)
request.go#L1272: func parsePostForm(r *Request) (vs url.Values, err error) {
request.go#L1336: func (r *Request) ParseForm() error {
request.go#L1379: func (r *Request) ParseMultipartForm(maxMemory int64) error {
request.go#L1428: func (r *Request) FormValue(key string) string {
request.go#L1443: func (r *Request) PostFormValue(key string) string {
request.go#L1455: func (r *Request) FormFile(key string) (multipart.File, *multipart.FileHeader, error) {
request.go#L1478: func (r *Request) PathValue(name string) string {
request.go#L1487: func (r *Request) SetPathValue(name, value string) {
request.go#L1500: func (r *Request) patIndex(name string) int {
request.go#L1518: func (r *Request) expectsContinue() bool {
request.go#L1522: func (r *Request) wantsHttp10KeepAlive() bool {
request.go#L1529: func (r *Request) wantsClose() bool {
request.go#L1536: func (r *Request) closeBody() error {
request.go#L1543: func (r *Request) isReplayable() bool {
request.go#L1561: func (r *Request) outgoingLength() int64 {
request.go#L1588: func (r *Request) requiresHTTP1() bool {
response.go#L115: Request *Request
response.go#L154: func ReadResponse(r *bufio.Reader, req *Request) (*Response, error) {
roundtrip.go#L20: func badRoundTrip(*Transport, *Request) (*Response, error)
roundtrip.go#L29: func (t *Transport) RoundTrip(req *Request) (*Response, error) {
servemux121.go#L96: func (mux *serveMux121) handleFunc(pattern string, handler func(ResponseWriter, *Request)) {
servemux121.go#L104: func (mux *serveMux121) findHandler(r *Request) (h Handler, pattern string) {
server.go#L89: ServeHTTP(ResponseWriter, *Request)
server.go#L426: req *Request // request for this response
server.go#L1121: func http1ServerSupportsRequest(req *Request) bool {
server.go#L2216: type HandlerFunc func(ResponseWriter, *Request)
server.go#L2219: func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2256: func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }
server.go#L2272: return HandlerFunc(func(w ResponseWriter, r *Request) {
server.go#L2276: r2 := new(Request)
server.go#L2299: func Redirect(w ResponseWriter, r *Request, url string, code int) {
server.go#L2374: func (rh *redirectHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2573: func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) {
server.go#L2585: func (mux *ServeMux) findHandler(r *Request) (h Handler, patStr string, _ *pattern, matches []string) {
server.go#L2631: return HandlerFunc(func(w ResponseWriter, r *Request) {
server.go#L2733: func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2767: func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
server.go#L2787: func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
server.go#L3201: func (sh serverHandler) ServeHTTP(rw ResponseWriter, req *Request) {
server.go#L3213: func badServeHTTP(serverHandler, ResponseWriter, *Request)
server.go#L3225: return HandlerFunc(func(w ResponseWriter, r *Request) {
server.go#L3227: r2 := new(Request)
server.go#L3496: func logf(r *Request, format string, args ...any) {
server.go#L3649: func (h *timeoutHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L3707: req *Request
server.go#L3780: func (globalOptionsHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L3808: func (h initALPNRequest) ServeHTTP(rw ResponseWriter, req *Request) {
server.go#L3903: return HandlerFunc(func(w ResponseWriter, r *Request) {
transfer.go#L83: case *Request:
transfer.go#L506: case *Request:
transfer.go#L586: case *Request:
transfer.go#L944: case *Request:
transport.go#L104: reqCanceler map[*Request]context.CancelCauseFunc
transport.go#L128: Proxy func(*Request) (*url.URL, error)
transport.go#L133: OnProxyConnectResponse func(ctx context.Context, proxyURL *url.URL, connectReq *Request, connectRes *Response) error
transport.go#L447: func ProxyFromEnvironment(req *Request) (*url.URL, error) {
transport.go#L453: func ProxyURL(fixedURL *url.URL) func(*Request) (*url.URL, error) {
transport.go#L454: return func(*Request) (*url.URL, error) {
transport.go#L463: *Request // original request, not to be mutated
transport.go#L491: func (t *Transport) useRegisteredProtocol(req *Request) bool {
transport.go#L505: func (t *Transport) alternateRoundTripper(req *Request) RoundTripper {
transport.go#L530: func (t *Transport) roundTrip(req *Request) (_ *Response, err error) {
transport.go#L691: func awaitLegacyCancel(ctx context.Context, cancel context.CancelCauseFunc, req *Request) {
transport.go#L721: func setupRewindBody(req *Request) *Request {
transport.go#L734: func rewindBody(req *Request) (rewound *Request, err error) {
transport.go#L756: func (pc *persistConn) shouldRetryRequest(req *Request, err error) bool {
transport.go#L861: func (t *Transport) prepareTransportCancel(req *Request, origCancel context.CancelCauseFunc) context.CancelCauseFunc {
transport.go#L876: t.reqCanceler = make(map[*Request]context.CancelCauseFunc)
transport.go#L889: func (t *Transport) CancelRequest(req *Request) {
transport.go#L1793: connectReq := &Request{
github.com/coinbase/cdp-sdk/go
cdp.go#L53: return func(_ context.Context, req *http.Request) error {
cdp.go#L82: return func(_ context.Context, req *http.Request) error {
github.com/coinbase/cdp-sdk/go/openapi
client.gen.go#L1075: type RequestEditorFn func(ctx context.Context, req *http.Request) error
client.gen.go#L1081: Do(req *http.Request) (*http.Response, error)
client.gen.go#L1866: func NewListEvmAccountsRequest(server string, params *ListEvmAccountsParams) (*http.Request, error) {
client.gen.go#L1931: func NewCreateEvmAccountRequest(server string, params *CreateEvmAccountParams, body CreateEvmAccountJSONRequestBody) (*http.Request, error) {
client.gen.go#L1942: func NewCreateEvmAccountRequestWithBody(server string, params *CreateEvmAccountParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L1997: func NewGetEvmAccountByNameRequest(server string, name string) (*http.Request, error) {
client.gen.go#L2031: func NewGetEvmAccountRequest(server string, address string) (*http.Request, error) {
client.gen.go#L2065: func NewUpdateEvmAccountRequest(server string, address string, params *UpdateEvmAccountParams, body UpdateEvmAccountJSONRequestBody) (*http.Request, error) {
client.gen.go#L2076: func NewUpdateEvmAccountRequestWithBody(server string, address string, params *UpdateEvmAccountParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2127: func NewSendEvmTransactionRequest(server string, address string, params *SendEvmTransactionParams, body SendEvmTransactionJSONRequestBody) (*http.Request, error) {
client.gen.go#L2138: func NewSendEvmTransactionRequestWithBody(server string, address string, params *SendEvmTransactionParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2200: func NewSignEvmHashRequest(server string, address string, params *SignEvmHashParams, body SignEvmHashJSONRequestBody) (*http.Request, error) {
client.gen.go#L2211: func NewSignEvmHashRequestWithBody(server string, address string, params *SignEvmHashParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2273: func NewSignEvmMessageRequest(server string, address string, params *SignEvmMessageParams, body SignEvmMessageJSONRequestBody) (*http.Request, error) {
client.gen.go#L2284: func NewSignEvmMessageRequestWithBody(server string, address string, params *SignEvmMessageParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2346: func NewSignEvmTransactionRequest(server string, address string, params *SignEvmTransactionParams, body SignEvmTransactionJSONRequestBody) (*http.Request, error) {
client.gen.go#L2357: func NewSignEvmTransactionRequestWithBody(server string, address string, params *SignEvmTransactionParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2419: func NewSignEvmTypedDataRequest(server string, address string, params *SignEvmTypedDataParams, body SignEvmTypedDataJSONRequestBody) (*http.Request, error) {
client.gen.go#L2430: func NewSignEvmTypedDataRequestWithBody(server string, address string, params *SignEvmTypedDataParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2492: func NewRequestEvmFaucetRequest(server string, body RequestEvmFaucetJSONRequestBody) (*http.Request, error) {
client.gen.go#L2503: func NewRequestEvmFaucetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2532: func NewListEvmSmartAccountsRequest(server string, params *ListEvmSmartAccountsParams) (*http.Request, error) {
client.gen.go#L2597: func NewCreateEvmSmartAccountRequest(server string, body CreateEvmSmartAccountJSONRequestBody) (*http.Request, error) {
client.gen.go#L2608: func NewCreateEvmSmartAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2637: func NewGetEvmSmartAccountRequest(server string, address string) (*http.Request, error) {
client.gen.go#L2671: func NewPrepareUserOperationRequest(server string, address string, body PrepareUserOperationJSONRequestBody) (*http.Request, error) {
client.gen.go#L2682: func NewPrepareUserOperationRequestWithBody(server string, address string, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2718: func NewGetUserOperationRequest(server string, address string, userOpHash string) (*http.Request, error) {
client.gen.go#L2759: func NewSendUserOperationRequest(server string, address string, userOpHash string, body SendUserOperationJSONRequestBody) (*http.Request, error) {
client.gen.go#L2770: func NewSendUserOperationRequestWithBody(server string, address string, userOpHash string, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L2813: func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesNetwork, address string, params *ListEvmTokenBalancesParams) (*http.Request, error) {
client.gen.go#L2892: func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Request, error) {
client.gen.go#L2973: func NewCreatePolicyRequest(server string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody) (*http.Request, error) {
client.gen.go#L2984: func NewCreatePolicyRequestWithBody(server string, params *CreatePolicyParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3028: func NewDeletePolicyRequest(server string, policyId string, params *DeletePolicyParams) (*http.Request, error) {
client.gen.go#L3077: func NewGetPolicyByIdRequest(server string, policyId string) (*http.Request, error) {
client.gen.go#L3111: func NewUpdatePolicyRequest(server string, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody) (*http.Request, error) {
client.gen.go#L3122: func NewUpdatePolicyRequestWithBody(server string, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3173: func NewListSolanaAccountsRequest(server string, params *ListSolanaAccountsParams) (*http.Request, error) {
client.gen.go#L3238: func NewCreateSolanaAccountRequest(server string, params *CreateSolanaAccountParams, body CreateSolanaAccountJSONRequestBody) (*http.Request, error) {
client.gen.go#L3249: func NewCreateSolanaAccountRequestWithBody(server string, params *CreateSolanaAccountParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3304: func NewGetSolanaAccountByNameRequest(server string, name string) (*http.Request, error) {
client.gen.go#L3338: func NewGetSolanaAccountRequest(server string, address string) (*http.Request, error) {
client.gen.go#L3372: func NewUpdateSolanaAccountRequest(server string, address string, params *UpdateSolanaAccountParams, body UpdateSolanaAccountJSONRequestBody) (*http.Request, error) {
client.gen.go#L3383: func NewUpdateSolanaAccountRequestWithBody(server string, address string, params *UpdateSolanaAccountParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3434: func NewSignSolanaMessageRequest(server string, address string, params *SignSolanaMessageParams, body SignSolanaMessageJSONRequestBody) (*http.Request, error) {
client.gen.go#L3445: func NewSignSolanaMessageRequestWithBody(server string, address string, params *SignSolanaMessageParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3507: func NewSignSolanaTransactionRequest(server string, address string, params *SignSolanaTransactionParams, body SignSolanaTransactionJSONRequestBody) (*http.Request, error) {
client.gen.go#L3518: func NewSignSolanaTransactionRequestWithBody(server string, address string, params *SignSolanaTransactionParams, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3580: func NewRequestSolanaFaucetRequest(server string, body RequestSolanaFaucetJSONRequestBody) (*http.Request, error) {
client.gen.go#L3591: func NewRequestSolanaFaucetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
client.gen.go#L3619: func (c *CDPClient) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |