type net/http.Request
174 uses
net/http (current package)
client.go#L78: CheckRedirect func(req *Request, via []*Request) error
client.go#L142: RoundTrip(*Request) (*Response, error)
client.go#L175: func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L212: func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L234: req = new(Request)
client.go#L321: func knownRoundTripperImpl(rt RoundTripper, req *Request) bool {
client.go#L352: func setRequestCancel(req *Request, rt RoundTripper, deadline time.Time) (stopTimer func(), didTimeout func() bool) {
client.go#L385: type canceler interface{ CancelRequest(*Request) }
client.go#L501: func (c *Client) checkRedirect(req *Request, via []*Request) error {
client.go#L511: 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#L609: reqs []*Request
client.go#L661: req = &Request{
client.go#L749: func (c *Client) makeHeadersCopier(ireq *Request) func(*Request) {
client.go#L764: return func(req *Request) {
client.go#L810: func defaultCheckRedirect(req *Request, via []*Request) error {
filetransport.go#L34: func (t fileTransport) RoundTrip(req *Request) (resp *Response, err error) {
fs.go#L130: func dirList(w ResponseWriter, r *Request, f File) {
fs.go#L194: func ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker) {
fs.go#L223: func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time, sizeFunc func() (int64, error), content io.ReadSeeker) {
fs.go#L407: func checkIfMatch(w ResponseWriter, r *Request) condResult {
fs.go#L437: func checkIfUnmodifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L456: func checkIfNoneMatch(w ResponseWriter, r *Request) condResult {
fs.go#L486: func checkIfModifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L507: func checkIfRange(w ResponseWriter, r *Request, modtime time.Time) condResult {
fs.go#L569: func checkPreconditions(w ResponseWriter, r *Request, modtime time.Time) (done bool, rangeHeader string) {
fs.go#L603: func serveFile(w ResponseWriter, r *Request, fs FileSystem, name string, redirect bool) {
fs.go#L701: func localRedirect(w ResponseWriter, r *Request, newPath string) {
fs.go#L730: func ServeFile(w ResponseWriter, r *Request, name string) {
fs.go#L860: func (f *fileHandler) ServeHTTP(w ResponseWriter, r *Request) {
h2_bundle.go#L746: GetClientConn(req *Request, addr string) (*http2ClientConn, error)
h2_bundle.go#L775: func (p *http2clientConnPool) GetClientConn(req *Request, addr string) (*http2ClientConn, error) {
h2_bundle.go#L784: func (p *http2clientConnPool) getClientConn(req *Request, addr string, dialOnMiss bool) (*http2ClientConn, error) {
h2_bundle.go#L1005: func (p http2noDialClientConnPool) GetClientConn(req *Request, addr string) (*http2ClientConn, error) {
h2_bundle.go#L1013: func http2shouldRetryDial(call *http2dialCall, req *Request) bool {
h2_bundle.go#L4162: UpgradeRequest *Request
h2_bundle.go#L5853: func (sc *http2serverConn) upgradeRequest(req *Request) {
h2_bundle.go#L5962: func (sc *http2serverConn) newWriterAndRequest(st *http2stream, f *http2MetaHeadersFrame) (*http2responseWriter, *Request, error) {
h2_bundle.go#L6027: func (sc *http2serverConn) newWriterAndRequestNoBody(st *http2stream, rp http2requestParam) (*http2responseWriter, *Request, error) {
h2_bundle.go#L6082: req := &Request{
h2_bundle.go#L6102: func (sc *http2serverConn) newResponseWriter(st *http2stream, req *Request) *http2responseWriter {
h2_bundle.go#L6117: req *Request
h2_bundle.go#L6118: handler func(ResponseWriter, *Request)
h2_bundle.go#L6123: func (sc *http2serverConn) scheduleHandler(streamID uint32, rw *http2responseWriter, req *Request, handler func(ResponseWriter, *Request)) error {
h2_bundle.go#L6168: func (sc *http2serverConn) runHandler(rw *http2responseWriter, req *Request, handler func(ResponseWriter, *Request)) {
h2_bundle.go#L6197: func http2handleHeaderListTooLong(w ResponseWriter, r *Request) {
h2_bundle.go#L6363: req *Request
h2_bundle.go#L7077: return func(w ResponseWriter, r *Request) {
h2_bundle.go#L7597: func (t *http2Transport) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L7635: func (t *http2Transport) RoundTripOpt(req *Request, opt http2RoundTripOpt) (*Response, error) {
h2_bundle.go#L7699: func http2shouldRetryRequest(req *Request, err error) (*Request, error) {
h2_bundle.go#L8233: func http2commaSeparatedTrailers(req *Request) (string, error) {
h2_bundle.go#L8264: func http2checkConnHeaders(req *Request) error {
h2_bundle.go#L8280: func http2actualContentLength(req *Request) int64 {
h2_bundle.go#L8302: func (cc *http2ClientConn) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L8410: func (cs *http2clientStream) doRequest(req *Request) {
h2_bundle.go#L8422: func (cs *http2clientStream) writeRequest(req *Request) (err error) {
h2_bundle.go#L8567: func (cs *http2clientStream) encodeAndWriteHeaders(req *Request) error {
h2_bundle.go#L8770: func (cs *http2clientStream) writeRequestBody(req *Request) (err error) {
h2_bundle.go#L8945: func (cc *http2ClientConn) encodeHeaders(req *Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) {
h2_bundle.go#L10141: func (rt http2erringRoundTripper) RoundTrip(*Request) (*Response, error) { return nil, rt.err }
h2_bundle.go#L10180: func http2isConnectionCloseRequest(req *Request) bool {
h2_bundle.go#L10202: func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
h2_bundle.go#L10217: func http2traceGetConn(req *Request, hostPort string) {
h2_bundle.go#L10225: func http2traceGotConn(req *Request, cc *http2ClientConn, reused bool) {
request.go#L111: type Request struct {
request.go#L345: func (r *Request) Context() context.Context {
request.go#L361: func (r *Request) WithContext(ctx context.Context) *Request {
request.go#L365: r2 := new(Request)
request.go#L377: func (r *Request) Clone(ctx context.Context) *Request {
request.go#L381: r2 := new(Request)
request.go#L404: func (r *Request) ProtoAtLeast(major, minor int) bool {
request.go#L410: func (r *Request) UserAgent() string {
request.go#L415: func (r *Request) Cookies() []*Cookie {
request.go#L426: func (r *Request) Cookie(name string) (*Cookie, error) {
request.go#L442: func (r *Request) AddCookie(c *Cookie) {
request.go#L459: func (r *Request) Referer() string {
request.go#L475: func (r *Request) MultipartReader() (*multipart.Reader, error) {
request.go#L486: func (r *Request) multipartReader(allowMixed bool) (*multipart.Reader, error) {
request.go#L507: func (r *Request) isH2Upgrade() bool {
request.go#L539: func (r *Request) Write(w io.Writer) error {
request.go#L549: func (r *Request) WriteProxy(w io.Writer) error {
request.go#L560: func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
request.go#L838: func NewRequest(method, url string, body io.Reader) (*Request, error) {
request.go#L864: func NewRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*Request, error) {
request.go#L887: req := &Request{
request.go#L948: func (r *Request) BasicAuth() (username, password string, ok bool) {
request.go#L987: func (r *Request) SetBasicAuth(username, password string) {
request.go#L1023: func ReadRequest(b *bufio.Reader) (*Request, error) {
request.go#L1033: func readRequest(b *bufio.Reader) (req *Request, err error) {
request.go#L1037: req = new(Request)
request.go#L1217: func parsePostForm(r *Request) (vs url.Values, err error) {
request.go#L1281: func (r *Request) ParseForm() error {
request.go#L1324: func (r *Request) ParseMultipartForm(maxMemory int64) error {
request.go#L1369: func (r *Request) FormValue(key string) string {
request.go#L1384: func (r *Request) PostFormValue(key string) string {
request.go#L1396: func (r *Request) FormFile(key string) (multipart.File, *multipart.FileHeader, error) {
request.go#L1415: func (r *Request) expectsContinue() bool {
request.go#L1419: func (r *Request) wantsHttp10KeepAlive() bool {
request.go#L1426: func (r *Request) wantsClose() bool {
request.go#L1433: func (r *Request) closeBody() error {
request.go#L1440: func (r *Request) isReplayable() bool {
request.go#L1458: func (r *Request) outgoingLength() int64 {
request.go#L1485: func (r *Request) requiresHTTP1() bool {
response.go#L115: Request *Request
response.go#L154: func ReadResponse(r *bufio.Reader, req *Request) (*Response, error) {
roundtrip.go#L16: func (t *Transport) RoundTrip(req *Request) (*Response, error) {
server.go#L87: ServeHTTP(ResponseWriter, *Request)
server.go#L425: req *Request // request for this response
server.go#L1072: func http1ServerSupportsRequest(req *Request) bool {
server.go#L2132: type HandlerFunc func(ResponseWriter, *Request)
server.go#L2135: func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2153: func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }
server.go#L2169: return HandlerFunc(func(w ResponseWriter, r *Request) {
server.go#L2173: r2 := new(Request)
server.go#L2196: func Redirect(w ResponseWriter, r *Request, url string, code int) {
server.go#L2271: func (rh *redirectHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2450: func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) {
server.go#L2505: func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L2563: func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
server.go#L2578: func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
server.go#L2929: func (sh serverHandler) ServeHTTP(rw ResponseWriter, req *Request) {
server.go#L2951: return HandlerFunc(func(w ResponseWriter, r *Request) {
server.go#L2953: r2 := new(Request)
server.go#L3221: func logf(r *Request, format string, args ...any) {
server.go#L3376: func (h *timeoutHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L3434: req *Request
server.go#L3507: func (globalOptionsHandler) ServeHTTP(w ResponseWriter, r *Request) {
server.go#L3535: func (h initALPNRequest) ServeHTTP(rw ResponseWriter, req *Request) {
server.go#L3640: return HandlerFunc(func(w ResponseWriter, r *Request) {
transfer.go#L82: case *Request:
transfer.go#L502: case *Request:
transfer.go#L582: case *Request:
transfer.go#L939: case *Request:
transport.go#L121: Proxy func(*Request) (*url.URL, error)
transport.go#L126: OnProxyConnectResponse func(ctx context.Context, proxyURL *url.URL, connectReq *Request, connectRes *Response) error
transport.go#L295: req *Request
transport.go#L448: func ProxyFromEnvironment(req *Request) (*url.URL, error) {
transport.go#L454: func ProxyURL(fixedURL *url.URL) func(*Request) (*url.URL, error) {
transport.go#L455: return func(*Request) (*url.URL, error) {
transport.go#L464: *Request // original request, not to be mutated
transport.go#L490: func (t *Transport) useRegisteredProtocol(req *Request) bool {
transport.go#L504: func (t *Transport) alternateRoundTripper(req *Request) RoundTripper {
transport.go#L513: func (t *Transport) roundTrip(req *Request) (*Response, error) {
transport.go#L665: func setupRewindBody(req *Request) *Request {
transport.go#L678: func rewindBody(req *Request) (rewound *Request, err error) {
transport.go#L700: func (pc *persistConn) shouldRetryRequest(req *Request, err error) bool {
transport.go#L803: func (t *Transport) CancelRequest(req *Request) {
transport.go#L1690: connectReq := &Request{
transport.go#L2504: req *Request
github.com/gotd/td/transport
websocket.go#L33: func (l wsListener) ServeHTTP(w http.ResponseWriter, r *http.Request) {
go.uber.org/zap
http_handler.go#L71: func (lvl AtomicLevel) ServeHTTP(w http.ResponseWriter, r *http.Request) {
http_handler.go#L78: func (lvl AtomicLevel) serveHTTP(w http.ResponseWriter, r *http.Request) error {
http_handler.go#L110: func decodePutRequest(contentType string, r *http.Request) (zapcore.Level, error) {
http_handler.go#L117: func decodePutURL(r *http.Request) (zapcore.Level, error) {
nhooyr.io/websocket
accept.go#L82: func Accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (*Conn, error) {
accept.go#L86: func accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (_ *Conn, err error) {
accept.go#L162: func verifyClientRequest(w http.ResponseWriter, r *http.Request) (errCode int, _ error) {
accept.go#L206: func authenticateOrigin(r *http.Request, originHosts []string) error {
accept.go#L240: func selectSubprotocol(r *http.Request, subprotocols []string) string {
dial.go#L75: newClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |