SYMBOL INDEX (2602 symbols across 129 files) FILE: allocation_test.go function TestAllocationServeConn (line 10) | func TestAllocationServeConn(t *testing.T) { function TestAllocationClient (line 40) | func TestAllocationClient(t *testing.T) { function TestAllocationURI (line 78) | func TestAllocationURI(t *testing.T) { function TestAllocationFS (line 92) | func TestAllocationFS(t *testing.T) { function TestAllocationsHeaderScanner (line 120) | func TestAllocationsHeaderScanner(t *testing.T) { FILE: args.go constant argsNoValue (line 13) | argsNoValue = true constant argsHasValue (line 14) | argsHasValue = false function AcquireArgs (line 21) | func AcquireArgs() *Args { function ReleaseArgs (line 28) | func ReleaseArgs(a *Args) { type Args (line 45) | type Args struct method Reset (line 59) | func (a *Args) Reset() { method CopyTo (line 64) | func (a *Args) CopyTo(dst *Args) { method All (line 75) | func (a *Args) All() iter.Seq2[[]byte, []byte] { method VisitAll (line 91) | func (a *Args) VisitAll(f func(key, value []byte)) { method Len (line 99) | func (a *Args) Len() int { method Parse (line 104) | func (a *Args) Parse(s string) { method ParseBytes (line 110) | func (a *Args) ParseBytes(b []byte) { method String (line 127) | func (a *Args) String() string { method QueryString (line 135) | func (a *Args) QueryString() []byte { method Sort (line 143) | func (a *Args) Sort(f func(x, y []byte) int) { method SortKeys (line 156) | func (a *Args) SortKeys(f func(x, y []byte) int) { method AppendBytes (line 163) | func (a *Args) AppendBytes(dst []byte) []byte { method WriteTo (line 183) | func (a *Args) WriteTo(w io.Writer) (int64, error) { method Del (line 189) | func (a *Args) Del(key string) { method DelBytes (line 194) | func (a *Args) DelBytes(key []byte) { method Add (line 201) | func (a *Args) Add(key, value string) { method AddBytesK (line 208) | func (a *Args) AddBytesK(key []byte, value string) { method AddBytesV (line 215) | func (a *Args) AddBytesV(key string, value []byte) { method AddBytesKV (line 222) | func (a *Args) AddBytesKV(key, value []byte) { method AddNoValue (line 229) | func (a *Args) AddNoValue(key string) { method AddBytesKNoValue (line 236) | func (a *Args) AddBytesKNoValue(key []byte) { method Set (line 241) | func (a *Args) Set(key, value string) { method SetBytesK (line 246) | func (a *Args) SetBytesK(key []byte, value string) { method SetBytesV (line 251) | func (a *Args) SetBytesV(key string, value []byte) { method SetBytesKV (line 256) | func (a *Args) SetBytesKV(key, value []byte) { method SetNoValue (line 263) | func (a *Args) SetNoValue(key string) { method SetBytesKNoValue (line 268) | func (a *Args) SetBytesKNoValue(key []byte) { method Peek (line 276) | func (a *Args) Peek(key string) []byte { method PeekBytes (line 284) | func (a *Args) PeekBytes(key []byte) []byte { method PeekMulti (line 289) | func (a *Args) PeekMulti(key string) [][]byte { method PeekMultiBytes (line 300) | func (a *Args) PeekMultiBytes(key []byte) [][]byte { method Has (line 305) | func (a *Args) Has(key string) bool { method HasBytes (line 310) | func (a *Args) HasBytes(key []byte) bool { method GetUint (line 318) | func (a *Args) GetUint(key string) (int, error) { method SetUint (line 327) | func (a *Args) SetUint(key string, value int) { method SetUintBytes (line 333) | func (a *Args) SetUintBytes(key []byte, value int) { method GetUintOrZero (line 340) | func (a *Args) GetUintOrZero(key string) int { method GetUfloat (line 349) | func (a *Args) GetUfloat(key string) (float64, error) { method GetUfloatOrZero (line 360) | func (a *Args) GetUfloatOrZero(key string) float64 { method GetBool (line 372) | func (a *Args) GetBool(key string) bool { type argsKV (line 52) | type argsKV struct function copyArgs (line 384) | func copyArgs(dst, src []argsKV) []argsKV { function delAllArgsStable (line 413) | func delAllArgsStable(args []argsKV, key string) []argsKV { function delAllArgs (line 428) | func delAllArgs(args []argsKV, key string) []argsKV { function setArgBytes (line 440) | func setArgBytes(h []argsKV, key, value []byte, noValue bool) []argsKV { function setArg (line 444) | func setArg(h []argsKV, key, value string, noValue bool) []argsKV { function appendArgBytes (line 461) | func appendArgBytes(h []argsKV, key, value []byte, noValue bool) []argsKV { function appendArg (line 465) | func appendArg(args []argsKV, key, value string, noValue bool) []argsKV { function allocArg (line 478) | func allocArg(h []argsKV) ([]argsKV, *argsKV) { function releaseArg (line 490) | func releaseArg(h []argsKV) []argsKV { function hasArg (line 494) | func hasArg(h []argsKV, key string) bool { function peekArgBytes (line 504) | func peekArgBytes(h []argsKV, k []byte) []byte { function peekArgStr (line 514) | func peekArgStr(h []argsKV, k string) []byte { type argsScanner (line 524) | type argsScanner struct method next (line 528) | func (s *argsScanner) next(kv *argsKV) bool { function decodeArgAppend (line 568) | func decodeArgAppend(dst, src []byte) []byte { function decodeArgAppendNoPlus (line 620) | func decodeArgAppendNoPlus(dst, src []byte) []byte { function peekAllArgBytesToDst (line 650) | func peekAllArgBytesToDst(dst [][]byte, h []argsKV, k []byte) [][]byte { FILE: args_test.go function TestDecodeArgAppend (line 15) | func TestDecodeArgAppend(t *testing.T) { function testDecodeArgAppend (line 31) | func testDecodeArgAppend(t *testing.T, s, expectedResult string) { function TestArgsAdd (line 38) | func TestArgsAdd(t *testing.T) { function TestArgsSortKeys (line 104) | func TestArgsSortKeys(t *testing.T) { function TestArgsAcquireReleaseSequential (line 120) | func TestArgsAcquireReleaseSequential(t *testing.T) { function TestArgsAcquireReleaseConcurrent (line 124) | func TestArgsAcquireReleaseConcurrent(t *testing.T) { function testArgsAcquireRelease (line 141) | func testArgsAcquireRelease(t *testing.T) { function TestArgsPeekMulti (line 166) | func TestArgsPeekMulti(t *testing.T) { function TestArgsEscape (line 194) | func TestArgsEscape(t *testing.T) { function testArgsEscape (line 210) | func testArgsEscape(t *testing.T, k, v, expectedS string) { function TestPathEscape (line 219) | func TestPathEscape(t *testing.T) { function testPathEscape (line 236) | func testPathEscape(t *testing.T, s string) { function TestArgsWriteTo (line 245) | func TestArgsWriteTo(t *testing.T) { function TestArgsGetBool (line 267) | func TestArgsGetBool(t *testing.T) { function testArgsGetBool (line 282) | func testArgsGetBool(t *testing.T, value string, expectedResult bool) { function TestArgsUint (line 292) | func TestArgsUint(t *testing.T) { function TestArgsCopyTo (line 327) | func TestArgsCopyTo(t *testing.T) { function testCopyTo (line 346) | func testCopyTo(t *testing.T, a *Args) { function TestArgsVisitAll (line 370) | func TestArgsVisitAll(t *testing.T) { function TestArgsStringCompose (line 391) | func TestArgsStringCompose(t *testing.T) { function TestArgsString (line 410) | func TestArgsString(t *testing.T) { function testArgsString (line 424) | func testArgsString(t *testing.T, a *Args, s string) { function TestArgsSetGetDel (line 432) | func TestArgsSetGetDel(t *testing.T) { function TestArgsParse (line 499) | func TestArgsParse(t *testing.T) { function TestArgsHas (line 547) | func TestArgsHas(t *testing.T) { function testArgsHas (line 569) | func testArgsHas(t *testing.T, a *Args, s string, expectedKeys ...string) { function testArgsHasNot (line 578) | func testArgsHasNot(t *testing.T, a *Args, s string, unexpectedKeys ...s... function testArgsParse (line 587) | func testArgsParse(t *testing.T, a *Args, s string, expectedLen int, exp... function TestArgsDeleteAll (line 603) | func TestArgsDeleteAll(t *testing.T) { function TestIssue932 (line 617) | func TestIssue932(t *testing.T) { FILE: args_timing_test.go function BenchmarkArgsParse (line 8) | func BenchmarkArgsParse(b *testing.B) { function BenchmarkArgsPeek (line 18) | func BenchmarkArgsPeek(b *testing.B) { FILE: b2s.go function b2s (line 7) | func b2s(b []byte) string { FILE: brotli.go constant CompressBrotliNoCompression (line 16) | CompressBrotliNoCompression = 0 constant CompressBrotliBestSpeed (line 17) | CompressBrotliBestSpeed = brotli.BestSpeed constant CompressBrotliBestCompression (line 18) | CompressBrotliBestCompression = brotli.BestCompression constant CompressBrotliDefaultCompression (line 23) | CompressBrotliDefaultCompression = 4 function acquireBrotliReader (line 26) | func acquireBrotliReader(r io.Reader) (*brotli.Reader, error) { function releaseBrotliReader (line 38) | func releaseBrotliReader(zr *brotli.Reader) { function acquireStacklessBrotliWriter (line 44) | func acquireStacklessBrotliWriter(w io.Writer, level int) stackless.Writ... function releaseStacklessBrotliWriter (line 58) | func releaseStacklessBrotliWriter(sw stackless.Writer, level int) { function acquireRealBrotliWriter (line 65) | func acquireRealBrotliWriter(w io.Writer, level int) *brotli.Writer { function releaseRealBrotliWriter (line 78) | func releaseRealBrotliWriter(zw *brotli.Writer, level int) { function AppendBrotliBytesLevel (line 99) | func AppendBrotliBytesLevel(dst, src []byte, level int) []byte { function WriteBrotliLevel (line 114) | func WriteBrotliLevel(w io.Writer, p []byte, level int) (int, error) { function stacklessWriteBrotli (line 140) | func stacklessWriteBrotli(ctx any) { function nonblockingWriteBrotli (line 147) | func nonblockingWriteBrotli(ctxv any) { function WriteBrotli (line 158) | func WriteBrotli(w io.Writer, p []byte) (int, error) { function AppendBrotliBytes (line 163) | func AppendBrotliBytes(dst, src []byte) []byte { function WriteUnbrotli (line 169) | func WriteUnbrotli(w io.Writer, p []byte) (int, error) { function writeUnbrotli (line 173) | func writeUnbrotli(w io.Writer, p []byte, maxBodySize int) (int, error) { function AppendUnbrotliBytes (line 189) | func AppendUnbrotliBytes(dst, src []byte) ([]byte, error) { function normalizeBrotliCompressLevel (line 197) | func normalizeBrotliCompressLevel(level int) int { FILE: brotli_test.go function TestBrotliBytesSerial (line 11) | func TestBrotliBytesSerial(t *testing.T) { function TestBrotliBytesConcurrent (line 19) | func TestBrotliBytesConcurrent(t *testing.T) { function testBrotliBytes (line 27) | func testBrotliBytes() error { function testBrotliBytesSingleCase (line 36) | func testBrotliBytesSingleCase(s string) error { function TestBrotliCompressSerial (line 57) | func TestBrotliCompressSerial(t *testing.T) { function TestBrotliCompressConcurrent (line 65) | func TestBrotliCompressConcurrent(t *testing.T) { function testBrotliCompress (line 73) | func testBrotliCompress() error { function testBrotliCompressSingleCase (line 82) | func testBrotliCompressSingleCase(s string) error { function TestCompressHandlerBrotliLevel (line 105) | func TestCompressHandlerBrotliLevel(t *testing.T) { FILE: bytesconv.go function AppendHTMLEscape (line 18) | func AppendHTMLEscape(dst []byte, s string) []byte { function AppendHTMLEscapeBytes (line 49) | func AppendHTMLEscapeBytes(dst, s []byte) []byte { function AppendIPv4 (line 55) | func AppendIPv4(dst []byte, ip net.IP) []byte { function ParseIPv4 (line 72) | func ParseIPv4(dst net.IP, ipStr []byte) (net.IP, error) { function AppendHTTPDate (line 112) | func AppendHTTPDate(dst []byte, date time.Time) []byte { function ParseHTTPDate (line 119) | func ParseHTTPDate(date []byte) (time.Time, error) { function AppendUint (line 124) | func AppendUint(dst []byte, n int) []byte { function ParseUint (line 134) | func ParseUint(buf []byte) (int, error) { function parseUintBuf (line 150) | func parseUintBuf(b []byte) (int, int, error) { function parseIPv4Octet (line 175) | func parseIPv4Octet(b []byte) (byte, int, error) { function ParseUfloat (line 203) | func ParseUfloat(buf []byte) (float64, error) { function readHexInt (line 222) | func readHexInt(r *bufio.Reader) (int, error) { function writeHexInt (line 252) | func writeHexInt(w *bufio.Writer, n int) error { constant upperhex (line 278) | upperhex = "0123456789ABCDEF" constant lowerhex (line 279) | lowerhex = "0123456789abcdef" function lowercaseBytes (line 282) | func lowercaseBytes(b []byte) { function AppendUnquotedArg (line 292) | func AppendUnquotedArg(dst, src []byte) []byte { function AppendQuotedArg (line 297) | func AppendQuotedArg(dst, src []byte) []byte { function appendQuotedPath (line 311) | func appendQuotedPath(dst, src []byte) []byte { FILE: bytesconv_32.go constant maxHexIntChars (line 6) | maxHexIntChars = 7 FILE: bytesconv_32_test.go function TestWriteHexInt (line 9) | func TestWriteHexInt(t *testing.T) { function TestAppendUint (line 18) | func TestAppendUint(t *testing.T) { function TestReadHexIntSuccess (line 30) | func TestReadHexIntSuccess(t *testing.T) { function TestParseUintError32 (line 41) | func TestParseUintError32(t *testing.T) { function TestParseUintSuccess (line 50) | func TestParseUintSuccess(t *testing.T) { FILE: bytesconv_64.go constant maxHexIntChars (line 6) | maxHexIntChars = 15 FILE: bytesconv_64_test.go function TestWriteHexInt (line 9) | func TestWriteHexInt(t *testing.T) { function TestAppendUint (line 18) | func TestAppendUint(t *testing.T) { function TestReadHexIntSuccess (line 30) | func TestReadHexIntSuccess(t *testing.T) { function TestParseUintError64 (line 42) | func TestParseUintError64(t *testing.T) { function TestParseUintSuccess (line 51) | func TestParseUintSuccess(t *testing.T) { FILE: bytesconv_table.go constant hex2intTable (line 6) | hex2intTable = "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10... constant toLowerTable (line 7) | toLowerTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0e\x0f\x10\x... constant toUpperTable (line 8) | toUpperTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0e\x0f\x10\x... constant quotedArgShouldEscapeTable (line 9) | quotedArgShouldEscapeTable = "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x... constant quotedPathShouldEscapeTable (line 10) | quotedPathShouldEscapeTable = "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\... constant validHeaderFieldByteTable (line 11) | validHeaderFieldByteTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0... constant validHeaderValueByteTable (line 12) | validHeaderValueByteTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x0... constant validMethodValueByteTable (line 13) | validMethodValueByteTable = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0... FILE: bytesconv_table_gen.go constant toLower (line 13) | toLower = 'a' - 'A' function main (line 16) | func main() { constant pre (line 259) | pre = `package fasthttp FILE: bytesconv_test.go function TestAppendQuotedArg (line 16) | func TestAppendQuotedArg(t *testing.T) { function TestAppendHTMLEscape (line 31) | func TestAppendHTMLEscape(t *testing.T) { function testAppendHTMLEscape (line 52) | func testAppendHTMLEscape(t *testing.T, s, expectedS string) { function TestParseIPv4 (line 59) | func TestParseIPv4(t *testing.T) { function testParseIPv4 (line 81) | func testParseIPv4(t *testing.T, dst net.IP, ipStr string, isValid bool) { function TestAppendIPv4 (line 96) | func TestAppendIPv4(t *testing.T) { function testAppendIPv4 (line 108) | func testAppendIPv4(t *testing.T, ipStr string, isValid bool) { function testAppendUint (line 126) | func testAppendUint(t *testing.T, n int) { function testWriteHexInt (line 134) | func testWriteHexInt(t *testing.T, n int, expectedS string) { function TestReadHexIntError (line 149) | func TestReadHexIntError(t *testing.T) { function testReadHexIntError (line 158) | func testReadHexIntError(t *testing.T, s string) { function testReadHexIntSuccess (line 170) | func testReadHexIntSuccess(t *testing.T, s string, expectedN int) { function TestAppendHTTPDate (line 182) | func TestAppendHTTPDate(t *testing.T) { function TestParseUintError (line 203) | func TestParseUintError(t *testing.T) { function TestParseUfloatSuccess (line 226) | func TestParseUfloatSuccess(t *testing.T) { function TestParseUfloatError (line 245) | func TestParseUfloatError(t *testing.T) { function testParseUfloatError (line 278) | func testParseUfloatError(t *testing.T, s string) { function testParseUfloatSuccess (line 288) | func testParseUfloatSuccess(t *testing.T, s string, expectedF float64) { function testParseUintError (line 302) | func testParseUintError(t *testing.T, s string) { function testParseUintSuccess (line 312) | func testParseUintSuccess(t *testing.T, s string, expectedN int) { function TestAppendUnquotedArg (line 322) | func TestAppendUnquotedArg(t *testing.T) { function testAppendUnquotedArg (line 331) | func testAppendUnquotedArg(t *testing.T, s, expectedS string) { FILE: bytesconv_timing_test.go function BenchmarkAppendHTMLEscape (line 12) | func BenchmarkAppendHTMLEscape(b *testing.B) { function BenchmarkHTMLEscapeString (line 28) | func BenchmarkHTMLEscapeString(b *testing.B) { function BenchmarkParseIPv4 (line 44) | func BenchmarkParseIPv4(b *testing.B) { function BenchmarkAppendIPv4 (line 58) | func BenchmarkAppendIPv4(b *testing.B) { function BenchmarkWriteHexInt (line 68) | func BenchmarkWriteHexInt(b *testing.B) { function BenchmarkParseUint (line 85) | func BenchmarkParseUint(b *testing.B) { function BenchmarkAppendUint (line 100) | func BenchmarkAppendUint(b *testing.B) { function BenchmarkLowercaseBytesNoop (line 114) | func BenchmarkLowercaseBytesNoop(b *testing.B) { function BenchmarkLowercaseBytesAll (line 125) | func BenchmarkLowercaseBytesAll(b *testing.B) { function BenchmarkLowercaseBytesMixed (line 136) | func BenchmarkLowercaseBytesMixed(b *testing.B) { function BenchmarkAppendUnquotedArgFastPath (line 147) | func BenchmarkAppendUnquotedArgFastPath(b *testing.B) { function BenchmarkAppendUnquotedArgSlowPath (line 157) | func BenchmarkAppendUnquotedArgSlowPath(b *testing.B) { function BenchmarkParseUfloat (line 167) | func BenchmarkParseUfloat(b *testing.B) { FILE: client.go function Do (line 36) | func Do(req *Request, resp *Response) error { function DoTimeout (line 63) | func DoTimeout(req *Request, resp *Response, timeout time.Duration) error { function DoDeadline (line 90) | func DoDeadline(req *Request, resp *Response, deadline time.Time) error { function DoRedirects (line 113) | func DoRedirects(req *Request, resp *Response, maxRedirectsCount int) er... function Get (line 127) | func Get(dst []byte, url string) (statusCode int, body []byte, err error) { function GetTimeout (line 140) | func GetTimeout(dst []byte, url string, timeout time.Duration) (statusCo... function GetDeadline (line 153) | func GetDeadline(dst []byte, url string, deadline time.Time) (statusCode... function Post (line 165) | func Post(dst []byte, url string, postArgs *Args) (statusCode int, body ... type Client (line 178) | type Client struct method Get (line 341) | func (c *Client) Get(dst []byte, url string) (statusCode int, body []b... method GetTimeout (line 354) | func (c *Client) GetTimeout(dst []byte, url string, timeout time.Durat... method GetDeadline (line 367) | func (c *Client) GetDeadline(dst []byte, url string, deadline time.Tim... method Post (line 379) | func (c *Client) Post(dst []byte, url string, postArgs *Args) (statusC... method DoTimeout (line 407) | func (c *Client) DoTimeout(req *Request, resp *Response, timeout time.... method DoDeadline (line 439) | func (c *Client) DoDeadline(req *Request, resp *Response, deadline tim... method DoRedirects (line 466) | func (c *Client) DoRedirects(req *Request, resp *Response, maxRedirect... method Do (line 493) | func (c *Client) Do(req *Request, resp *Response) error { method hostClient (line 526) | func (c *Client) hostClient(host []byte, isTLS bool) (*HostClient, err... method CloseIdleConnections (line 591) | func (c *Client) CloseIdleConnections() { method mCleaner (line 602) | func (c *Client) mCleaner(m map[string]*HostClient) { constant DefaultMaxConnsPerHost (line 636) | DefaultMaxConnsPerHost = 512 constant DefaultMaxIdleConnDuration (line 640) | DefaultMaxIdleConnDuration = 10 * time.Second constant DefaultMaxIdemponentCallAttempts (line 643) | DefaultMaxIdemponentCallAttempts = 5 type DialFunc (line 657) | type DialFunc type DialFuncWithTimeout (line 672) | type DialFuncWithTimeout type RetryIfFunc (line 676) | type RetryIfFunc type RetryIfErrFunc (line 694) | type RetryIfErrFunc type RoundTripper (line 697) | type RoundTripper interface type ConnPoolStrategyType (line 702) | type ConnPoolStrategyType constant FIFO (line 705) | FIFO ConnPoolStrategyType = iota constant LIFO (line 706) | LIFO type HostClient (line 719) | type HostClient struct method LastUseTime (line 945) | func (c *HostClient) LastUseTime() time.Time { method Get (line 956) | func (c *HostClient) Get(dst []byte, url string) (statusCode int, body... method GetTimeout (line 969) | func (c *HostClient) GetTimeout(dst []byte, url string, timeout time.D... method GetDeadline (line 982) | func (c *HostClient) GetDeadline(dst []byte, url string, deadline time... method Post (line 994) | func (c *HostClient) Post(dst []byte, url string, postArgs *Args) (sta... method DoTimeout (line 1268) | func (c *HostClient) DoTimeout(req *Request, resp *Response, timeout t... method DoDeadline (line 1295) | func (c *HostClient) DoDeadline(req *Request, resp *Response, deadline... method DoRedirects (line 1322) | func (c *HostClient) DoRedirects(req *Request, resp *Response, maxRedi... method Do (line 1344) | func (c *HostClient) Do(req *Request, resp *Response) error { method PendingRequests (line 1424) | func (c *HostClient) PendingRequests() int { method do (line 1432) | func (c *HostClient) do(req *Request, resp *Response) (bool, error) { method doNonNilReqResp (line 1441) | func (c *HostClient) doNonNilReqResp(req *Request, resp *Response) (bo... method transport (line 1489) | func (c *HostClient) transport() RoundTripper { method SetMaxConns (line 1537) | func (c *HostClient) SetMaxConns(newMaxConns int) { method AcquireConn (line 1543) | func (c *HostClient) AcquireConn(reqTimeout time.Duration, connectionC... method queueForIdle (line 1645) | func (c *HostClient) queueForIdle(w *wantConn) { method dialConnFor (line 1655) | func (c *HostClient) dialConnFor(w *wantConn) { method CloseIdleConnections (line 1674) | func (c *HostClient) CloseIdleConnections() { method connsCleaner (line 1688) | func (c *HostClient) connsCleaner() { method CloseConn (line 1744) | func (c *HostClient) CloseConn(cc *clientConn) { method decConnsCount (line 1750) | func (c *HostClient) decConnsCount() { method ConnsCount (line 1778) | func (c *HostClient) ConnsCount() int { method ReleaseConn (line 1804) | func (c *HostClient) ReleaseConn(cc *clientConn) { method AcquireWriter (line 1842) | func (c *HostClient) AcquireWriter(conn net.Conn) *bufio.Writer { method ReleaseWriter (line 1862) | func (c *HostClient) ReleaseWriter(bw *bufio.Writer) { method AcquireReader (line 1870) | func (c *HostClient) AcquireReader(conn net.Conn) *bufio.Reader { method ReleaseReader (line 1890) | func (c *HostClient) ReleaseReader(br *bufio.Reader) { method nextAddr (line 1927) | func (c *HostClient) nextAddr() string { method dialHostHard (line 1941) | func (c *HostClient) dialHostHard(dialTimeout time.Duration) (conn net... method cachedTLSConfig (line 1975) | func (c *HostClient) cachedTLSConfig(addr string) *tls.Config { type clientConn (line 920) | type clientConn struct method Conn (line 928) | func (cc *clientConn) Conn() net.Conn { method CreatedTime (line 933) | func (cc *clientConn) CreatedTime() time.Time { method LastUseTime (line 938) | func (cc *clientConn) LastUseTime() time.Time { type clientDoer (line 998) | type clientDoer interface function clientGetURL (line 1002) | func clientGetURL(dst []byte, url string, c clientDoer) (statusCode int,... function clientGetURLTimeout (line 1011) | func clientGetURLTimeout(dst []byte, url string, timeout time.Duration, ... type clientURLResponse (line 1016) | type clientURLResponse struct function clientGetURLDeadline (line 1022) | func clientGetURLDeadline(dst []byte, url string, deadline time.Time, c ... function clientPostURL (line 1093) | func clientPostURL(dst []byte, url string, postArgs *Args, c clientDoer)... constant defaultMaxRedirectsCount (line 1123) | defaultMaxRedirectsCount = 16 function doRequestFollowRedirectsBuffer (line 1125) | func doRequestFollowRedirectsBuffer(req *Request, dst []byte, url string... function doRequestFollowRedirects (line 1142) | func doRequestFollowRedirects( function getRedirectURL (line 1181) | func getRedirectURL(baseURL string, location []byte, disablePathNormaliz... function StatusCodeIsRedirect (line 1192) | func StatusCodeIsRedirect(statusCode int) bool { function AcquireRequest (line 1210) | func AcquireRequest() *Request { function ReleaseRequest (line 1222) | func ReleaseRequest(req *Request) { function AcquireResponse (line 1232) | func AcquireResponse() *Response { function ReleaseResponse (line 1244) | func ReleaseResponse(resp *Response) { function isIdempotent (line 1428) | func isIdempotent(req *Request) bool { type timeoutError (line 1519) | type timeoutError struct method Error (line 1521) | func (e *timeoutError) Error() string { method Timeout (line 1529) | func (e *timeoutError) Timeout() bool { function acquireClientConn (line 1785) | func acquireClientConn(conn net.Conn) *clientConn { function releaseClientConn (line 1796) | func releaseClientConn(cc *clientConn) { function newClientTLSConfig (line 1898) | func newClientTLSConfig(c *tls.Config, addr string) *tls.Config { function tlsServerName (line 1916) | func tlsServerName(addr string) string { function tlsClientHandshake (line 1997) | func tlsClientHandshake(rawConn net.Conn, tlsConfig *tls.Config, deadlin... function dialAddr (line 2022) | func dialAddr( function callDialFunc (line 2048) | func callDialFunc( function AddMissingPort (line 2073) | func AddMissingPort(addr string, isTLS bool) string { type wantConn (line 2107) | type wantConn struct method waiting (line 2115) | func (w *wantConn) waiting() bool { method tryDeliver (line 2125) | func (w *wantConn) tryDeliver(conn *clientConn, err error) bool { method cancel (line 2143) | func (w *wantConn) cancel(c *HostClient, err error) { type wantConnQueue (line 2162) | type wantConnQueue struct method len (line 2185) | func (q *wantConnQueue) len() int { method pushBack (line 2190) | func (q *wantConnQueue) pushBack(w *wantConn) { method popFront (line 2195) | func (q *wantConnQueue) popFront() *wantConn { method peekFront (line 2211) | func (q *wantConnQueue) peekFront() *wantConn { method clearFront (line 2223) | func (q *wantConnQueue) clearFront() (cleaned bool) { type PipelineClient (line 2247) | type PipelineClient struct method DoTimeout (line 2422) | func (c *PipelineClient) DoTimeout(req *Request, resp *Response, timeo... method DoDeadline (line 2441) | func (c *PipelineClient) DoDeadline(req *Request, resp *Response, dead... method Do (line 2553) | func (c *PipelineClient) Do(req *Request, resp *Response) error { method getConnClient (line 2612) | func (c *PipelineClient) getConnClient() *pipelineConnClient { method getConnClientUnlocked (line 2619) | func (c *PipelineClient) getConnClientUnlocked() *pipelineConnClient { method newConnClient (line 2652) | func (c *PipelineClient) newConnClient() *pipelineConnClient { method PendingRequests (line 2949) | func (c *PipelineClient) PendingRequests() int { type pipelineConnClient (line 2362) | type pipelineConnClient struct method DoDeadline (line 2445) | func (c *pipelineConnClient) DoDeadline(req *Request, resp *Response, ... method acquirePipelineWork (line 2508) | func (c *pipelineConnClient) acquirePipelineWork(timeout time.Duration... method releasePipelineWork (line 2530) | func (c *pipelineConnClient) releasePipelineWork(w *pipelineWork) { method Do (line 2557) | func (c *pipelineConnClient) Do(req *Request, resp *Response) error { method init (line 2684) | func (c *pipelineConnClient) init() { method worker (line 2723) | func (c *pipelineConnClient) worker() error { method cachedTLSConfig (line 2764) | func (c *pipelineConnClient) cachedTLSConfig() *tls.Config { method writer (line 2780) | func (c *pipelineConnClient) writer(conn net.Conn, stopCh <-chan struc... method reader (line 2887) | func (c *pipelineConnClient) reader(conn net.Conn, stopCh <-chan struc... method logger (line 2933) | func (c *pipelineConnClient) logger() Logger { method PendingRequests (line 2959) | func (c *pipelineConnClient) PendingRequests() int { type pipelineWork (line 2396) | type pipelineWork struct constant DefaultMaxPendingRequests (line 2682) | DefaultMaxPendingRequests = 1024 type transport (line 2972) | type transport struct method RoundTrip (line 2974) | func (t *transport) RoundTrip(hc *HostClient, req *Request, resp *Resp... FILE: client_example_test.go function ExampleHostClient (line 9) | func ExampleHostClient() { function useResponseBody (line 37) | func useResponseBody(body []byte) { FILE: client_test.go function TestCloseIdleConnections (line 27) | func TestCloseIdleConnections(t *testing.T) { function TestPipelineClientSetUserAgent (line 77) | func TestPipelineClientSetUserAgent(t *testing.T) { function TestPipelineClientSetUserAgentTimeout (line 83) | func TestPipelineClientSetUserAgentTimeout(t *testing.T) { function testPipelineClientSetUserAgent (line 89) | func testPipelineClientSetUserAgent(t *testing.T, timeout time.Duration) { function TestHostClientNegativeTimeout (line 127) | func TestHostClientNegativeTimeout(t *testing.T) { function TestDoDeadlineRetry (line 153) | func TestDoDeadlineRetry(t *testing.T) { function TestPipelineClientIssue832 (line 197) | func TestPipelineClientIssue832(t *testing.T) { function TestClientInvalidURI (line 252) | func TestClientInvalidURI(t *testing.T) { function TestClientGetWithBody (line 284) | func TestClientGetWithBody(t *testing.T) { function TestClientURLAuth (line 317) | func TestClientURLAuth(t *testing.T) { function TestClientNilResp (line 357) | func TestClientNilResp(t *testing.T) { function TestClientNegativeTimeout (line 383) | func TestClientNegativeTimeout(t *testing.T) { function TestPipelineClientNilResp (line 409) | func TestPipelineClientNilResp(t *testing.T) { function TestClientParseConn (line 437) | func TestClientParseConn(t *testing.T) { function TestClientPostArgs (line 471) | func TestClientPostArgs(t *testing.T) { function TestClientRedirectSameSchema (line 509) | func TestClientRedirectSameSchema(t *testing.T) { function TestClientRedirectClientChangingSchemaHttp2Https (line 552) | func TestClientRedirectClientChangingSchemaHttp2Https(t *testing.T) { function TestClientRedirectHostClientChangingSchemaHttp2Https (line 587) | func TestClientRedirectHostClientChangingSchemaHttp2Https(t *testing.T) { function testClientRedirectListener (line 623) | func testClientRedirectListener(t *testing.T, isTLS bool) net.Listener { function testClientRedirectChangingSchemaServer (line 654) | func testClientRedirectChangingSchemaServer(t *testing.T, https, http ne... function TestClientHeaderCase (line 688) | func TestClientHeaderCase(t *testing.T) { function TestClientReadTimeout (line 730) | func TestClientReadTimeout(t *testing.T) { function TestClientDefaultUserAgent (line 802) | func TestClientDefaultUserAgent(t *testing.T) { function TestClientSetUserAgent (line 834) | func TestClientSetUserAgent(t *testing.T) { function TestClientNoUserAgent (line 868) | func TestClientNoUserAgent(t *testing.T) { function TestClientDoWithCustomHeaders (line 899) | func TestClientDoWithCustomHeaders(t *testing.T) { function TestPipelineClientDoSerial (line 996) | func TestPipelineClientDoSerial(t *testing.T) { function TestPipelineClientDoConcurrent (line 1002) | func TestPipelineClientDoConcurrent(t *testing.T) { function TestPipelineClientDoBatchDelayConcurrent (line 1008) | func TestPipelineClientDoBatchDelayConcurrent(t *testing.T) { function TestPipelineClientDoBatchDelayConcurrentMultiConn (line 1014) | func TestPipelineClientDoBatchDelayConcurrentMultiConn(t *testing.T) { function testPipelineClientDoConcurrent (line 1020) | func testPipelineClientDoConcurrent(t *testing.T, concurrency int, maxBa... function testPipelineClientDo (line 1077) | func testPipelineClientDo(t *testing.T, c *PipelineClient) { function TestPipelineClientDoDisableHeaderNamesNormalizing (line 1112) | func TestPipelineClientDoDisableHeaderNamesNormalizing(t *testing.T) { function TestPipelineClientDoTimeoutDisableHeaderNamesNormalizing (line 1118) | func TestPipelineClientDoTimeoutDisableHeaderNamesNormalizing(t *testing... function testPipelineClientDisableHeaderNamesNormalizing (line 1124) | func testPipelineClientDisableHeaderNamesNormalizing(t *testing.T, timeo... function TestClientDoTimeoutDisableHeaderNamesNormalizing (line 1182) | func TestClientDoTimeoutDisableHeaderNamesNormalizing(t *testing.T) { function TestClientDoTimeoutDisablePathNormalizing (line 1236) | func TestClientDoTimeoutDisablePathNormalizing(t *testing.T) { function TestHostClientPendingRequests (line 1289) | func TestHostClientPendingRequests(t *testing.T) { function TestHostClientMaxConnsWithDeadline (line 1385) | func TestHostClientMaxConnsWithDeadline(t *testing.T) { function TestHostClientMaxConnDuration (line 1468) | func TestHostClientMaxConnDuration(t *testing.T) { function TestHostClientMultipleAddrs (line 1526) | func TestHostClientMultipleAddrs(t *testing.T) { function TestClientFollowRedirects (line 1586) | func TestClientFollowRedirects(t *testing.T) { function TestClientGetTimeoutSuccess (line 1764) | func TestClientGetTimeoutSuccess(t *testing.T) { function TestClientGetTimeoutSuccessConcurrent (line 1773) | func TestClientGetTimeoutSuccessConcurrent(t *testing.T) { function TestClientDoTimeoutSuccess (line 1790) | func TestClientDoTimeoutSuccess(t *testing.T) { function TestClientDoTimeoutSuccessConcurrent (line 1800) | func TestClientDoTimeoutSuccessConcurrent(t *testing.T) { function TestClientGetTimeoutError (line 1818) | func TestClientGetTimeoutError(t *testing.T) { function TestClientGetTimeoutErrorConcurrent (line 1834) | func TestClientGetTimeoutErrorConcurrent(t *testing.T) { function TestClientDoTimeoutError (line 1859) | func TestClientDoTimeoutError(t *testing.T) { function TestClientDoTimeoutErrorConcurrent (line 1876) | func TestClientDoTimeoutErrorConcurrent(t *testing.T) { function testClientDoTimeoutError (line 1901) | func testClientDoTimeoutError(t *testing.T, c *Client, n int) { function testClientGetTimeoutError (line 1916) | func testClientGetTimeoutError(t *testing.T, c *Client, n int) { function testClientRequestSetTimeoutError (line 1932) | func testClientRequestSetTimeoutError(t *testing.T, c *Client, n int) { type readTimeoutConn (line 1948) | type readTimeoutConn struct method Read (line 1956) | func (r *readTimeoutConn) Read(p []byte) (int, error) { method Write (line 1961) | func (r *readTimeoutConn) Write(p []byte) (int, error) { method Close (line 1966) | func (r *readTimeoutConn) Close() error { method LocalAddr (line 1970) | func (r *readTimeoutConn) LocalAddr() net.Addr { method RemoteAddr (line 1974) | func (r *readTimeoutConn) RemoteAddr() net.Addr { method SetReadDeadline (line 1978) | func (r *readTimeoutConn) SetReadDeadline(d time.Time) error { method SetWriteDeadline (line 1987) | func (r *readTimeoutConn) SetWriteDeadline(d time.Time) error { function TestClientNonIdempotentRetry_BodyStream (line 1996) | func TestClientNonIdempotentRetry_BodyStream(t *testing.T) { function TestClientIdempotentRequest (line 2032) | func TestClientIdempotentRequest(t *testing.T) { function TestClientRetryRequestWithCustomDecider (line 2087) | func TestClientRetryRequestWithCustomDecider(t *testing.T) { type TransportDemo (line 2138) | type TransportDemo struct method RoundTrip (line 2143) | func (t TransportDemo) RoundTrip(hc *HostClient, req *Request, res *Re... function TestHostClientTransport (line 2154) | func TestHostClientTransport(t *testing.T) { type writeErrorConn (line 2208) | type writeErrorConn struct method Write (line 2212) | func (w *writeErrorConn) Write(p []byte) (int, error) { method Close (line 2216) | func (w *writeErrorConn) Close() error { method LocalAddr (line 2220) | func (w *writeErrorConn) LocalAddr() net.Addr { method RemoteAddr (line 2224) | func (w *writeErrorConn) RemoteAddr() net.Addr { method SetReadDeadline (line 2228) | func (w *writeErrorConn) SetReadDeadline(_ time.Time) error { method SetWriteDeadline (line 2232) | func (w *writeErrorConn) SetWriteDeadline(_ time.Time) error { type readErrorConn (line 2236) | type readErrorConn struct method Read (line 2240) | func (r *readErrorConn) Read(p []byte) (int, error) { method Write (line 2244) | func (r *readErrorConn) Write(p []byte) (int, error) { method Close (line 2248) | func (r *readErrorConn) Close() error { method LocalAddr (line 2252) | func (r *readErrorConn) LocalAddr() net.Addr { method RemoteAddr (line 2256) | func (r *readErrorConn) RemoteAddr() net.Addr { method SetReadDeadline (line 2260) | func (r *readErrorConn) SetReadDeadline(_ time.Time) error { method SetWriteDeadline (line 2264) | func (r *readErrorConn) SetWriteDeadline(_ time.Time) error { type singleReadConn (line 2268) | type singleReadConn struct method Read (line 2275) | func (r *singleReadConn) Read(p []byte) (int, error) { method Write (line 2284) | func (r *singleReadConn) Write(p []byte) (int, error) { method Close (line 2288) | func (r *singleReadConn) Close() error { method LocalAddr (line 2292) | func (r *singleReadConn) LocalAddr() net.Addr { method RemoteAddr (line 2296) | func (r *singleReadConn) RemoteAddr() net.Addr { method SetReadDeadline (line 2300) | func (r *singleReadConn) SetReadDeadline(_ time.Time) error { method SetWriteDeadline (line 2304) | func (r *singleReadConn) SetWriteDeadline(_ time.Time) error { type singleEchoConn (line 2308) | type singleEchoConn struct method Read (line 2315) | func (r *singleEchoConn) Read(p []byte) (int, error) { method Write (line 2324) | func (r *singleEchoConn) Write(p []byte) (int, error) { method Close (line 2329) | func (r *singleEchoConn) Close() error { method LocalAddr (line 2333) | func (r *singleEchoConn) LocalAddr() net.Addr { method RemoteAddr (line 2337) | func (r *singleEchoConn) RemoteAddr() net.Addr { method SetReadDeadline (line 2341) | func (r *singleEchoConn) SetReadDeadline(_ time.Time) error { method SetWriteDeadline (line 2345) | func (r *singleEchoConn) SetWriteDeadline(_ time.Time) error { function TestSingleEchoConn (line 2349) | func TestSingleEchoConn(t *testing.T) { function TestClientHTTPSInvalidServerName (line 2382) | func TestClientHTTPSInvalidServerName(t *testing.T) { function TestClientHTTPSConcurrent (line 2398) | func TestClientHTTPSConcurrent(t *testing.T) { function TestClientManyServers (line 2429) | func TestClientManyServers(t *testing.T) { function TestClientGet (line 2452) | func TestClientGet(t *testing.T) { function TestClientPost (line 2461) | func TestClientPost(t *testing.T) { function TestClientConcurrent (line 2470) | func TestClientConcurrent(t *testing.T) { function skipIfNotUnix (line 2489) | func skipIfNotUnix(tb testing.TB) { function TestHostClientGet (line 2499) | func TestHostClientGet(t *testing.T) { function TestHostClientPost (line 2511) | func TestHostClientPost(t *testing.T) { function TestHostClientConcurrent (line 2523) | func TestHostClientConcurrent(t *testing.T) { function testClientGet (line 2544) | func testClientGet(t *testing.T, c clientGetter, addr string, n int) { function testClientDoTimeoutSuccess (line 2563) | func testClientDoTimeoutSuccess(t *testing.T, c *Client, addr string, n ... function testClientRequestSetTimeoutSuccess (line 2586) | func testClientRequestSetTimeoutSuccess(t *testing.T, c *Client, addr st... function testClientGetTimeoutSuccess (line 2610) | func testClientGetTimeoutSuccess(t *testing.T, c *Client, addr string, n... function testClientPost (line 2632) | func testClientPost(t *testing.T, c clientPoster, addr string, n int) { function testHostClientGet (line 2655) | func testHostClientGet(t *testing.T, c *HostClient, n int) { function testHostClientPost (line 2659) | func testHostClientPost(t *testing.T, c *HostClient, n int) { type clientPoster (line 2663) | type clientPoster interface type clientGetter (line 2667) | type clientGetter interface function createEchoClient (line 2671) | func createEchoClient(network, addr string) *HostClient { type testEchoServer (line 2680) | type testEchoServer struct method Stop (line 2687) | func (s *testEchoServer) Stop() { method Addr (line 2696) | func (s *testEchoServer) Addr() string { function startEchoServerTLS (line 2700) | func startEchoServerTLS(t *testing.T, network, addr string) *testEchoSer... function startEchoServer (line 2704) | func startEchoServer(t *testing.T, network, addr string) *testEchoServer { function startEchoServerExt (line 2708) | func startEchoServerExt(t *testing.T, network, addr string, isTLS bool) ... function TestClientTLSHandshakeTimeout (line 2762) | func TestClientTLSHandshakeTimeout(t *testing.T) { function TestClientConfigureClientFailed (line 2801) | func TestClientConfigureClientFailed(t *testing.T) { function TestHostClientMaxConnWaitTimeoutSuccess (line 2830) | func TestHostClientMaxConnWaitTimeoutSuccess(t *testing.T) { function TestHostClientMaxConnWaitTimeoutError (line 2908) | func TestHostClientMaxConnWaitTimeoutError(t *testing.T) { function TestHostClientMaxConnWaitTimeoutWithEarlierDeadline (line 2997) | func TestHostClientMaxConnWaitTimeoutWithEarlierDeadline(t *testing.T) { type TransportEmpty (line 3097) | type TransportEmpty struct method RoundTrip (line 3099) | func (t TransportEmpty) RoundTrip(hc *HostClient, req *Request, res *R... function TestHttpsRequestWithoutParsedURL (line 3103) | func TestHttpsRequestWithoutParsedURL(t *testing.T) { function TestHostClientErrConnPoolStrategyNotImpl (line 3121) | func TestHostClientErrConnPoolStrategyNotImpl(t *testing.T) { function Test_AddMissingPort (line 3162) | func Test_AddMissingPort(t *testing.T) { type TransportWrapper (line 3224) | type TransportWrapper struct method RoundTrip (line 3230) | func (tw *TransportWrapper) RoundTrip(hc *HostClient, req *Request, re... method transport (line 3240) | func (tw *TransportWrapper) transport() RoundTripper { method assertRequestLog (line 3247) | func (tw *TransportWrapper) assertRequestLog(reqLog string) { method assertResponseLog (line 3253) | func (tw *TransportWrapper) assertResponseLog(respLog string) { function TestClientTransportEx (line 3259) | func TestClientTransportEx(t *testing.T) { function Test_getRedirectURL (line 3296) | func Test_getRedirectURL(t *testing.T) { type clientDoTimeOuter (line 3353) | type clientDoTimeOuter interface function TestDialTimeout (line 3357) | func TestDialTimeout(t *testing.T) { function TestClientHeadWithBody (line 3444) | func TestClientHeadWithBody(t *testing.T) { function TestRevertPull1233 (line 3493) | func TestRevertPull1233(t *testing.T) { type F (line 3546) | type F struct method Read (line 3550) | func (f F) Read(p []byte) (n int, err error) { function TestTCPDialerFlushDNSCache (line 3560) | func TestTCPDialerFlushDNSCache(t *testing.T) { type testResolver (line 3609) | type testResolver struct method LookupIPAddr (line 3614) | func (r *testResolver) LookupIPAddr(ctx context.Context, host string) ... FILE: client_timing_test.go type fakeClientConn (line 19) | type fakeClientConn struct method SetWriteDeadline (line 27) | func (c *fakeClientConn) SetWriteDeadline(t time.Time) error { method SetReadDeadline (line 31) | func (c *fakeClientConn) SetReadDeadline(t time.Time) error { method Write (line 35) | func (c *fakeClientConn) Write(b []byte) (int, error) { method Read (line 40) | func (c *fakeClientConn) Read(b []byte) (int, error) { method Close (line 58) | func (c *fakeClientConn) Close() error { method LocalAddr (line 63) | func (c *fakeClientConn) LocalAddr() net.Addr { method RemoteAddr (line 70) | func (c *fakeClientConn) RemoteAddr() net.Addr { function releaseFakeServerConn (line 77) | func releaseFakeServerConn(c *fakeClientConn) { function acquireFakeServerConn (line 82) | func acquireFakeServerConn(s []byte) *fakeClientConn { function BenchmarkClientGetTimeoutFastServer (line 96) | func BenchmarkClientGetTimeoutFastServer(b *testing.B) { function fasthttpEchoHandler (line 126) | func fasthttpEchoHandler(ctx *RequestCtx) { function nethttpEchoHandler (line 130) | func nethttpEchoHandler(w http.ResponseWriter, r *http.Request) { function BenchmarkClientGetEndToEnd1TCP (line 135) | func BenchmarkClientGetEndToEnd1TCP(b *testing.B) { function BenchmarkClientGetEndToEnd10TCP (line 139) | func BenchmarkClientGetEndToEnd10TCP(b *testing.B) { function BenchmarkClientGetEndToEnd100TCP (line 143) | func BenchmarkClientGetEndToEnd100TCP(b *testing.B) { function benchmarkClientGetEndToEndTCP (line 147) | func benchmarkClientGetEndToEndTCP(b *testing.B, parallelism int) { function BenchmarkNetHTTPClientGetEndToEnd1TCP (line 195) | func BenchmarkNetHTTPClientGetEndToEnd1TCP(b *testing.B) { function BenchmarkNetHTTPClientGetEndToEnd10TCP (line 199) | func BenchmarkNetHTTPClientGetEndToEnd10TCP(b *testing.B) { function BenchmarkNetHTTPClientGetEndToEnd100TCP (line 203) | func BenchmarkNetHTTPClientGetEndToEnd100TCP(b *testing.B) { function benchmarkNetHTTPClientGetEndToEndTCP (line 207) | func benchmarkNetHTTPClientGetEndToEndTCP(b *testing.B, parallelism int) { function BenchmarkClientGetEndToEnd1Inmemory (line 261) | func BenchmarkClientGetEndToEnd1Inmemory(b *testing.B) { function BenchmarkClientGetEndToEnd10Inmemory (line 265) | func BenchmarkClientGetEndToEnd10Inmemory(b *testing.B) { function BenchmarkClientGetEndToEnd100Inmemory (line 269) | func BenchmarkClientGetEndToEnd100Inmemory(b *testing.B) { function BenchmarkClientGetEndToEnd1000Inmemory (line 273) | func BenchmarkClientGetEndToEnd1000Inmemory(b *testing.B) { function BenchmarkClientGetEndToEnd10KInmemory (line 277) | func BenchmarkClientGetEndToEnd10KInmemory(b *testing.B) { function benchmarkClientGetEndToEndInmemory (line 281) | func benchmarkClientGetEndToEndInmemory(b *testing.B, parallelism int) { function BenchmarkNetHTTPClientGetEndToEnd1Inmemory (line 325) | func BenchmarkNetHTTPClientGetEndToEnd1Inmemory(b *testing.B) { function BenchmarkNetHTTPClientGetEndToEnd10Inmemory (line 329) | func BenchmarkNetHTTPClientGetEndToEnd10Inmemory(b *testing.B) { function BenchmarkNetHTTPClientGetEndToEnd100Inmemory (line 333) | func BenchmarkNetHTTPClientGetEndToEnd100Inmemory(b *testing.B) { function BenchmarkNetHTTPClientGetEndToEnd1000Inmemory (line 337) | func BenchmarkNetHTTPClientGetEndToEnd1000Inmemory(b *testing.B) { function benchmarkNetHTTPClientGetEndToEndInmemory (line 341) | func benchmarkNetHTTPClientGetEndToEndInmemory(b *testing.B, parallelism... function BenchmarkClientEndToEndBigResponse1Inmemory (line 391) | func BenchmarkClientEndToEndBigResponse1Inmemory(b *testing.B) { function BenchmarkClientEndToEndBigResponse10Inmemory (line 395) | func BenchmarkClientEndToEndBigResponse10Inmemory(b *testing.B) { function benchmarkClientEndToEndBigResponseInmemory (line 399) | func benchmarkClientEndToEndBigResponseInmemory(b *testing.B, parallelis... function BenchmarkNetHTTPClientEndToEndBigResponse1Inmemory (line 450) | func BenchmarkNetHTTPClientEndToEndBigResponse1Inmemory(b *testing.B) { function BenchmarkNetHTTPClientEndToEndBigResponse10Inmemory (line 454) | func BenchmarkNetHTTPClientEndToEndBigResponse10Inmemory(b *testing.B) { function benchmarkNetHTTPClientEndToEndBigResponseInmemory (line 458) | func benchmarkNetHTTPClientEndToEndBigResponseInmemory(b *testing.B, par... function BenchmarkPipelineClient1 (line 518) | func BenchmarkPipelineClient1(b *testing.B) { function BenchmarkPipelineClient10 (line 522) | func BenchmarkPipelineClient10(b *testing.B) { function BenchmarkPipelineClient100 (line 526) | func BenchmarkPipelineClient100(b *testing.B) { function BenchmarkPipelineClient1000 (line 530) | func BenchmarkPipelineClient1000(b *testing.B) { function benchmarkPipelineClient (line 534) | func benchmarkPipelineClient(b *testing.B, parallelism int) { FILE: coarsetime.go function CoarseTimeNow (line 11) | func CoarseTimeNow() time.Time { FILE: compress.go constant CompressNoCompression (line 19) | CompressNoCompression = flate.NoCompression constant CompressBestSpeed (line 20) | CompressBestSpeed = flate.BestSpeed constant CompressBestCompression (line 21) | CompressBestCompression = flate.BestCompression constant CompressDefaultCompression (line 22) | CompressDefaultCompression = 6 constant CompressHuffmanOnly (line 23) | CompressHuffmanOnly = -2 function acquireGzipReader (line 26) | func acquireGzipReader(r io.Reader) (*gzip.Reader, error) { function releaseGzipReader (line 38) | func releaseGzipReader(zr *gzip.Reader) { function acquireFlateReader (line 45) | func acquireFlateReader(r io.Reader) (io.ReadCloser, error) { function releaseFlateReader (line 61) | func releaseFlateReader(zr io.ReadCloser) { function resetFlateReader (line 66) | func resetFlateReader(zr io.ReadCloser, r io.Reader) error { function acquireStacklessGzipWriter (line 77) | func acquireStacklessGzipWriter(w io.Writer, level int) stackless.Writer { function releaseStacklessGzipWriter (line 91) | func releaseStacklessGzipWriter(sw stackless.Writer, level int) { function acquireRealGzipWriter (line 98) | func acquireRealGzipWriter(w io.Writer, level int) *gzip.Writer { function releaseRealGzipWriter (line 121) | func releaseRealGzipWriter(zw *gzip.Writer, level int) { function AppendGzipBytesLevel (line 143) | func AppendGzipBytesLevel(dst, src []byte, level int) []byte { function WriteGzipLevel (line 159) | func WriteGzipLevel(w io.Writer, p []byte, level int) (int, error) { function stacklessWriteGzip (line 185) | func stacklessWriteGzip(ctx any) { function nonblockingWriteGzip (line 192) | func nonblockingWriteGzip(ctxv any) { function WriteGzip (line 203) | func WriteGzip(w io.Writer, p []byte) (int, error) { function AppendGzipBytes (line 208) | func AppendGzipBytes(dst, src []byte) []byte { function WriteGunzip (line 214) | func WriteGunzip(w io.Writer, p []byte) (int, error) { function writeGunzip (line 218) | func writeGunzip(w io.Writer, p []byte, maxBodySize int) (int, error) { function AppendGunzipBytes (line 234) | func AppendGunzipBytes(dst, src []byte) ([]byte, error) { function AppendDeflateBytesLevel (line 250) | func AppendDeflateBytesLevel(dst, src []byte, level int) []byte { function WriteDeflateLevel (line 266) | func WriteDeflateLevel(w io.Writer, p []byte, level int) (int, error) { function stacklessWriteDeflate (line 292) | func stacklessWriteDeflate(ctx any) { function nonblockingWriteDeflate (line 299) | func nonblockingWriteDeflate(ctxv any) { type compressCtx (line 308) | type compressCtx struct function WriteDeflate (line 316) | func WriteDeflate(w io.Writer, p []byte) (int, error) { function AppendDeflateBytes (line 321) | func AppendDeflateBytes(dst, src []byte) []byte { function WriteInflate (line 327) | func WriteInflate(w io.Writer, p []byte) (int, error) { function writeInflate (line 331) | func writeInflate(w io.Writer, p []byte, maxBodySize int) (int, error) { function AppendInflateBytes (line 347) | func AppendInflateBytes(dst, src []byte) ([]byte, error) { type byteSliceWriter (line 353) | type byteSliceWriter struct method Write (line 357) | func (w *byteSliceWriter) Write(p []byte) (int, error) { method WriteString (line 362) | func (w *byteSliceWriter) WriteString(s string) (int, error) { type byteSliceReader (line 367) | type byteSliceReader struct method Read (line 371) | func (r *byteSliceReader) Read(p []byte) (int, error) { method ReadByte (line 380) | func (r *byteSliceReader) ReadByte() (byte, error) { function acquireStacklessDeflateWriter (line 389) | func acquireStacklessDeflateWriter(w io.Writer, level int) stackless.Wri... function releaseStacklessDeflateWriter (line 403) | func releaseStacklessDeflateWriter(sw stackless.Writer, level int) { function acquireRealDeflateWriter (line 410) | func acquireRealDeflateWriter(w io.Writer, level int) *zlib.Writer { function releaseRealDeflateWriter (line 433) | func releaseRealDeflateWriter(zw *zlib.Writer, level int) { function newCompressWriterPoolMap (line 445) | func newCompressWriterPoolMap() []*sync.Pool { function isFileCompressible (line 457) | func isFileCompressible(f fs.File, minCompressRatio float64) bool { function normalizeCompressLevel (line 486) | func normalizeCompressLevel(level int) int { FILE: compress_test.go function TestGzipBytesSerial (line 24) | func TestGzipBytesSerial(t *testing.T) { function TestGzipBytesConcurrent (line 32) | func TestGzipBytesConcurrent(t *testing.T) { function TestDeflateBytesSerial (line 40) | func TestDeflateBytesSerial(t *testing.T) { function TestDeflateBytesConcurrent (line 48) | func TestDeflateBytesConcurrent(t *testing.T) { function testGzipBytes (line 56) | func testGzipBytes() error { function testDeflateBytes (line 65) | func testDeflateBytes() error { function testGzipBytesSingleCase (line 74) | func testGzipBytesSingleCase(s string) error { function testDeflateBytesSingleCase (line 95) | func testDeflateBytesSingleCase(s string) error { function TestGzipCompressSerial (line 116) | func TestGzipCompressSerial(t *testing.T) { function TestGzipCompressConcurrent (line 124) | func TestGzipCompressConcurrent(t *testing.T) { function TestFlateCompressSerial (line 132) | func TestFlateCompressSerial(t *testing.T) { function TestFlateCompressConcurrent (line 140) | func TestFlateCompressConcurrent(t *testing.T) { function testGzipCompress (line 148) | func testGzipCompress() error { function testFlateCompress (line 157) | func testFlateCompress() error { function testGzipCompressSingleCase (line 166) | func testGzipCompressSingleCase(s string) error { function testFlateCompressSingleCase (line 189) | func testFlateCompressSingleCase(s string) error { function testConcurrent (line 212) | func testConcurrent(concurrency int, f func() error) error { FILE: cookie.go type CookieSameSite (line 23) | type CookieSameSite constant CookieSameSiteDisabled (line 27) | CookieSameSiteDisabled CookieSameSite = iota constant CookieSameSiteDefaultMode (line 29) | CookieSameSiteDefaultMode constant CookieSameSiteLaxMode (line 31) | CookieSameSiteLaxMode constant CookieSameSiteStrictMode (line 33) | CookieSameSiteStrictMode constant CookieSameSiteNoneMode (line 36) | CookieSameSiteNoneMode function AcquireCookie (line 43) | func AcquireCookie() *Cookie { function ReleaseCookie (line 51) | func ReleaseCookie(c *Cookie) { type Cookie (line 67) | type Cookie struct method CopyTo (line 92) | func (c *Cookie) CopyTo(src *Cookie) { method HTTPOnly (line 107) | func (c *Cookie) HTTPOnly() bool { method SetHTTPOnly (line 112) | func (c *Cookie) SetHTTPOnly(httpOnly bool) { method Secure (line 117) | func (c *Cookie) Secure() bool { method SetSecure (line 122) | func (c *Cookie) SetSecure(secure bool) { method SameSite (line 127) | func (c *Cookie) SameSite() CookieSameSite { method SetSameSite (line 133) | func (c *Cookie) SetSameSite(mode CookieSameSite) { method Partitioned (line 141) | func (c *Cookie) Partitioned() bool { method SetPartitioned (line 147) | func (c *Cookie) SetPartitioned(partitioned bool) { method Path (line 156) | func (c *Cookie) Path() []byte { method SetPath (line 161) | func (c *Cookie) SetPath(path string) { method SetPathBytes (line 167) | func (c *Cookie) SetPathBytes(path []byte) { method Domain (line 176) | func (c *Cookie) Domain() []byte { method SetDomain (line 181) | func (c *Cookie) SetDomain(domain string) { method SetDomainBytes (line 186) | func (c *Cookie) SetDomainBytes(domain []byte) { method MaxAge (line 192) | func (c *Cookie) MaxAge() int { method SetMaxAge (line 203) | func (c *Cookie) SetMaxAge(seconds int) { method Expire (line 210) | func (c *Cookie) Expire() time.Time { method SetExpire (line 224) | func (c *Cookie) SetExpire(expire time.Time) { method Value (line 232) | func (c *Cookie) Value() []byte { method SetValue (line 237) | func (c *Cookie) SetValue(value string) { method SetValueBytes (line 242) | func (c *Cookie) SetValueBytes(value []byte) { method Key (line 250) | func (c *Cookie) Key() []byte { method SetKey (line 255) | func (c *Cookie) SetKey(key string) { method SetKeyBytes (line 260) | func (c *Cookie) SetKeyBytes(key []byte) { method Reset (line 265) | func (c *Cookie) Reset() { method AppendBytes (line 280) | func (c *Cookie) AppendBytes(dst []byte) []byte { method Cookie (line 349) | func (c *Cookie) Cookie() []byte { method String (line 355) | func (c *Cookie) String() string { method WriteTo (line 362) | func (c *Cookie) WriteTo(w io.Writer) (int64, error) { method Parse (line 370) | func (c *Cookie) Parse(src string) error { method ParseBytes (line 376) | func (c *Cookie) ParseBytes(src []byte) error { function appendCookiePart (line 472) | func appendCookiePart(dst, key, value []byte) []byte { function getCookieKey (line 479) | func getCookieKey(dst, src []byte) []byte { function appendRequestCookieBytes (line 487) | func appendRequestCookieBytes(dst []byte, cookies []argsKV) []byte { function appendResponseCookieBytes (line 504) | func appendResponseCookieBytes(dst []byte, cookies []argsKV) []byte { function parseRequestCookies (line 515) | func parseRequestCookies(cookies []argsKV, src []byte) []argsKV { type cookieScanner (line 528) | type cookieScanner struct method next (line 532) | func (s *cookieScanner) next(key, val *[]byte) bool { function decodeCookieArg (line 566) | func decodeCookieArg(dst, src []byte, skipQuotes bool) []byte { function caseInsensitiveCompare (line 583) | func caseInsensitiveCompare(a, b []byte) bool { FILE: cookie_test.go function TestCookiePanic (line 9) | func TestCookiePanic(t *testing.T) { function TestCookieValueWithEqualAndSpaceChars (line 18) | func TestCookieValueWithEqualAndSpaceChars(t *testing.T) { function testCookieValueWithEqualAndSpaceChars (line 26) | func testCookieValueWithEqualAndSpaceChars(t *testing.T, expectedName, e... function TestCookieSecureHttpOnly (line 52) | func TestCookieSecureHttpOnly(t *testing.T) { function TestCookieSecure (line 75) | func TestCookieSecure(t *testing.T) { function TestCookieSameSite (line 103) | func TestCookieSameSite(t *testing.T) { function TestCookieMaxAge (line 176) | func TestCookieMaxAge(t *testing.T) { function TestCookieHttpOnly (line 225) | func TestCookieHttpOnly(t *testing.T) { function TestCookiePartitioned (line 253) | func TestCookiePartitioned(t *testing.T) { function TestCookieAcquireReleaseSequential (line 282) | func TestCookieAcquireReleaseSequential(t *testing.T) { function TestCookieAcquireReleaseConcurrent (line 288) | func TestCookieAcquireReleaseConcurrent(t *testing.T) { function testCookieAcquireRelease (line 307) | func testCookieAcquireRelease(t *testing.T) { function TestCookieParse (line 344) | func TestCookieParse(t *testing.T) { function testCookieParse (line 358) | func testCookieParse(t *testing.T, s, expectedS string) { function TestCookieAppendBytes (line 369) | func TestCookieAppendBytes(t *testing.T) { function testCookieAppendBytes (line 388) | func testCookieAppendBytes(t *testing.T, c *Cookie, key, value, expected... function TestParseRequestCookies (line 397) | func TestParseRequestCookies(t *testing.T) { function testParseRequestCookies (line 410) | func testParseRequestCookies(t *testing.T, s, expectedS string) { function TestAppendRequestCookieBytes (line 418) | func TestAppendRequestCookieBytes(t *testing.T) { function testAppendRequestCookieBytes (line 427) | func testAppendRequestCookieBytes(t *testing.T, s, expectedS string) { FILE: cookie_timing_test.go function BenchmarkCookieParseMin (line 7) | func BenchmarkCookieParseMin(b *testing.B) { function BenchmarkCookieParseNoExpires (line 17) | func BenchmarkCookieParseNoExpires(b *testing.B) { function BenchmarkCookieParseFull (line 27) | func BenchmarkCookieParseFull(b *testing.B) { FILE: examples/host_client/hostclient.go function main (line 10) | func main() { FILE: examples/letsencrypt/letsencryptserver.go function requestHandler (line 12) | func requestHandler(ctx *fasthttp.RequestCtx) { function main (line 16) | func main() { FILE: examples/multidomain/multidomain.go function main (line 11) | func main() { FILE: expvarhandler/expvar.go function ExpvarHandler (line 25) | func ExpvarHandler(ctx *fasthttp.RequestCtx) { function getExpvarRegexp (line 54) | func getExpvarRegexp(ctx *fasthttp.RequestCtx) (*regexp.Regexp, error) { FILE: expvarhandler/expvar_test.go function TestExpvarHandlerBasic (line 15) | func TestExpvarHandlerBasic(t *testing.T) { function TestExpvarHandlerRegexp (line 65) | func TestExpvarHandlerRegexp(t *testing.T) { FILE: fasthttpadaptor/adaptor.go function NewFastHTTPHandlerFunc (line 33) | func NewFastHTTPHandlerFunc(h http.HandlerFunc) fasthttp.RequestHandler { function NewFastHTTPHandler (line 53) | func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler { constant modeDone (line 193) | modeDone = iota + 1 constant modeFlushed (line 194) | modeFlushed constant modeHijacked (line 195) | modeHijacked constant modePanicked (line 196) | modePanicked type writer (line 200) | type writer struct method Header (line 243) | func (w *writer) Header() http.Header { method WriteHeader (line 247) | func (w *writer) WriteHeader(code int) { method Write (line 255) | func (w *writer) Write(p []byte) (int, error) { method Flush (line 273) | func (w *writer) Flush() { method Hijack (line 298) | func (w *writer) Hijack() (net.Conn, *bufio.ReadWriter, error) { method Close (line 331) | func (w *writer) Close() error { method status (line 340) | func (w *writer) status() int { method consumePreflush (line 349) | func (w *writer) consumePreflush() []byte { function acquireWriter (line 222) | func acquireWriter(ctx *fasthttp.RequestCtx) *writer { function releaseWriter (line 235) | func releaseWriter(w *writer) { type wrappedConn (line 283) | type wrappedConn struct method Close (line 290) | func (c *wrappedConn) Close() (err error) { FILE: fasthttpadaptor/adaptor_test.go function TestNewFastHTTPHandler (line 20) | func TestNewFastHTTPHandler(t *testing.T) { function TestNewFastHTTPHandlerWithCookies (line 150) | func TestNewFastHTTPHandlerWithCookies(t *testing.T) { function setContextValueMiddleware (line 197) | func setContextValueMiddleware(next fasthttp.RequestHandler, key string,... function TestHijack (line 204) | func TestHijack(t *testing.T) { function TestFlushHandler (line 275) | func TestFlushHandler(t *testing.T) { function TestFlushHandlerClosed (line 358) | func TestFlushHandlerClosed(t *testing.T) { function TestHijackFlush (line 444) | func TestHijackFlush(t *testing.T) { function TestResourceRecyclingUnderLoad_OneEndpoint (line 518) | func TestResourceRecyclingUnderLoad_OneEndpoint(t *testing.T) { function TestResourceRecyclingUnderLoad_MultipleEndpoints (line 553) | func TestResourceRecyclingUnderLoad_MultipleEndpoints(t *testing.T) { function sendRequest (line 646) | func sendRequest(ln *fasthttputil.InmemoryListener, req *http.Request, r... function TestNewFastHTTPHandlerPanic (line 679) | func TestNewFastHTTPHandlerPanic(t *testing.T) { FILE: fasthttpadaptor/b2s.go function b2s (line 7) | func b2s(b []byte) string { FILE: fasthttpadaptor/request.go function ConvertRequest (line 18) | func ConvertRequest(ctx *fasthttp.RequestCtx, r *http.Request, forServer... FILE: fasthttpadaptor/request_test.go function BenchmarkConvertRequest (line 10) | func BenchmarkConvertRequest(b *testing.B) { FILE: fasthttpproxy/dialer.go type Dialer (line 27) | type Dialer struct method GetDialFunc (line 74) | func (d *Dialer) GetDialFunc(useEnv bool) (fasthttp.DialFunc, error) { method Dial (line 153) | func (d *Dialer) Dial(network, addr string) (net.Conn, error) { method connectTimeout (line 170) | func (d *Dialer) connectTimeout() time.Duration { type httpProxyDialer (line 177) | type httpProxyDialer interface type DialerFunc (line 183) | type DialerFunc method Dial (line 185) | func (d DialerFunc) Dial(network, addr string) (net.Conn, error) { function httpProxyDial (line 190) | func httpProxyDial(dialer proxy.Dialer, network, addr, proxyAddr, auth s... type proxyInfo (line 236) | type proxyInfo struct function addrAndAuth (line 241) | func addrAndAuth(pu *url.URL, authCache *sync.Map) (proxyAddr, auth stri... FILE: fasthttpproxy/dialer_test.go function TestDialer_GetDialFunc (line 15) | func TestDialer_GetDialFunc(t *testing.T) { function startProxyServer (line 242) | func startProxyServer(t *testing.T, ports []string, counts []atomic.Int6... function getDialer (line 279) | func getDialer(httpProxy, httpsProxy, noProxy string) *Dialer { function getCounts (line 289) | func getCounts(counts []atomic.Int64) (r []int64) { function countsEqual (line 296) | func countsEqual(a, b []int64) bool { FILE: fasthttpproxy/http.go function FasthttpHTTPDialer (line 18) | func FasthttpHTTPDialer(proxy string) fasthttp.DialFunc { function FasthttpHTTPDialerTimeout (line 31) | func FasthttpHTTPDialerTimeout(proxy string, timeout time.Duration) fast... function FasthttpHTTPDialerDualStack (line 45) | func FasthttpHTTPDialerDualStack(proxy string) fasthttp.DialFunc { function FasthttpHTTPDialerDualStackTimeout (line 58) | func FasthttpHTTPDialerDualStackTimeout(proxy string, timeout time.Durat... FILE: fasthttpproxy/proxy_env.go constant httpsScheme (line 10) | httpsScheme = "https" constant httpScheme (line 11) | httpScheme = "http" function FasthttpProxyHTTPDialer (line 22) | func FasthttpProxyHTTPDialer() fasthttp.DialFunc { function FasthttpProxyHTTPDialerTimeout (line 35) | func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.Dial... FILE: fasthttpproxy/socks5.go function FasthttpSocksDialer (line 16) | func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc { function FasthttpSocksDialerDualStack (line 30) | func FasthttpSocksDialerDualStack(proxyAddr string) fasthttp.DialFunc { FILE: fasthttputil/inmemory_listener.go type InmemoryListener (line 16) | type InmemoryListener struct method SetLocalAddr (line 37) | func (ln *InmemoryListener) SetLocalAddr(localAddr net.Addr) { method Accept (line 49) | func (ln *InmemoryListener) Accept() (net.Conn, error) { method Close (line 59) | func (ln *InmemoryListener) Close() error { method Addr (line 84) | func (ln *InmemoryListener) Addr() net.Addr { method Dial (line 100) | func (ln *InmemoryListener) Dial() (net.Conn, error) { method DialWithLocalAddr (line 110) | func (ln *InmemoryListener) DialWithLocalAddr(local net.Addr) (net.Con... type acceptConn (line 24) | type acceptConn struct function NewInmemoryListener (line 30) | func NewInmemoryListener() *InmemoryListener { type inmemoryAddr (line 73) | type inmemoryAddr method Network (line 75) | func (inmemoryAddr) Network() string { method String (line 79) | func (inmemoryAddr) String() string { FILE: fasthttputil/inmemory_listener_test.go function TestInmemoryListener (line 15) | func TestInmemoryListener(t *testing.T) { type echoServerHandler (line 100) | type echoServerHandler struct method ServeHTTP (line 104) | func (s *echoServerHandler) ServeHTTP(w http.ResponseWriter, r *http.R... function testInmemoryListenerHTTP (line 112) | func testInmemoryListenerHTTP(t *testing.T, f func(t *testing.T, client ... function testInmemoryListenerHTTPSingle (line 142) | func testInmemoryListenerHTTPSingle(t *testing.T, client *http.Client, c... function TestInmemoryListenerHTTPSingle (line 158) | func TestInmemoryListenerHTTPSingle(t *testing.T) { function TestInmemoryListenerHTTPSerial (line 164) | func TestInmemoryListenerHTTPSerial(t *testing.T) { function TestInmemoryListenerHTTPConcurrent (line 172) | func TestInmemoryListenerHTTPConcurrent(t *testing.T) { function acceptLoop (line 186) | func acceptLoop(ln net.Listener) { function TestInmemoryListenerAddrDefault (line 197) | func TestInmemoryListenerAddrDefault(t *testing.T) { function verifyAddr (line 230) | func verifyAddr(t *testing.T, got, expected net.Addr) { function TestInmemoryListenerAddrCustom (line 236) | func TestInmemoryListenerAddrCustom(t *testing.T) { FILE: fasthttputil/inmemory_listener_timing_test.go function BenchmarkPlainStreaming (line 65) | func BenchmarkPlainStreaming(b *testing.B) { function BenchmarkPlainHandshake (line 73) | func BenchmarkPlainHandshake(b *testing.B) { function BenchmarkTLSStreaming (line 81) | func BenchmarkTLSStreaming(b *testing.B) { function benchmark (line 85) | func benchmark(b *testing.B, h fasthttp.RequestHandler, isTLS bool) { function streamingHandler (line 128) | func streamingHandler(ctx *fasthttp.RequestCtx) { function handshakeHandler (line 132) | func handshakeHandler(ctx *fasthttp.RequestCtx) { function runRequests (line 139) | func runRequests(b *testing.B, pb *testing.PB, c *fasthttp.HostClient, i... FILE: fasthttputil/pipeconns.go function NewPipeConns (line 14) | func NewPipeConns() *PipeConns { type PipeConns (line 44) | type PipeConns struct method SetAddresses (line 52) | func (pc *PipeConns) SetAddresses(localAddr1, remoteAddr1, localAddr2,... method Conn1 (line 70) | func (pc *PipeConns) Conn1() net.Conn { method Conn2 (line 78) | func (pc *PipeConns) Conn2() net.Conn { method Close (line 83) | func (pc *PipeConns) Close() error { type pipeConn (line 95) | type pipeConn struct method Write (line 117) | func (c *pipeConn) Write(p []byte) (int, error) { method WriteString (line 145) | func (c *pipeConn) WriteString(s string) (int, error) { method Read (line 149) | func (c *pipeConn) Read(p []byte) (int, error) { method read (line 168) | func (c *pipeConn) read(p []byte, mayBlock bool) (int, error) { method readNextByteBuffer (line 180) | func (c *pipeConn) readNextByteBuffer(mayBlock bool) error { method Close (line 243) | func (c *pipeConn) Close() error { method LocalAddr (line 247) | func (c *pipeConn) LocalAddr() net.Addr { method RemoteAddr (line 258) | func (c *pipeConn) RemoteAddr() net.Addr { method SetDeadline (line 269) | func (c *pipeConn) SetDeadline(deadline time.Time) error { method SetReadDeadline (line 275) | func (c *pipeConn) SetReadDeadline(deadline time.Time) error { method SetWriteDeadline (line 286) | func (c *pipeConn) SetWriteDeadline(deadline time.Time) error { type timeoutError (line 226) | type timeoutError struct method Error (line 228) | func (e *timeoutError) Error() string { method Timeout (line 236) | func (e *timeoutError) Timeout() bool { function updateTimer (line 294) | func updateTimer(t *time.Timer, deadline time.Time) <-chan time.Time { type pipeAddr (line 318) | type pipeAddr method Network (line 320) | func (pipeAddr) Network() string { method String (line 324) | func (pipeAddr) String() string { type byteBuffer (line 328) | type byteBuffer struct function acquireByteBuffer (line 332) | func acquireByteBuffer() *byteBuffer { function releaseByteBuffer (line 336) | func releaseByteBuffer(b *byteBuffer) { FILE: fasthttputil/pipeconns_test.go function TestPipeConnsWriteTimeout (line 12) | func TestPipeConnsWriteTimeout(t *testing.T) { function TestPipeConnsPositiveReadTimeout (line 70) | func TestPipeConnsPositiveReadTimeout(t *testing.T) { function TestPipeConnsNegativeReadTimeout (line 76) | func TestPipeConnsNegativeReadTimeout(t *testing.T) { function testPipeConnsReadTimeout (line 84) | func testPipeConnsReadTimeout(t *testing.T, timeout time.Duration) { function TestPipeConnsCloseWhileReadWriteConcurrent (line 123) | func TestPipeConnsCloseWhileReadWriteConcurrent(t *testing.T) { function TestPipeConnsCloseWhileReadWriteSerial (line 144) | func TestPipeConnsCloseWhileReadWriteSerial(t *testing.T) { function testPipeConnsCloseWhileReadWriteSerial (line 150) | func testPipeConnsCloseWhileReadWriteSerial(t *testing.T) { function testPipeConnsCloseWhileReadWrite (line 156) | func testPipeConnsCloseWhileReadWrite(t *testing.T) { function TestPipeConnsReadWriteSerial (line 216) | func TestPipeConnsReadWriteSerial(t *testing.T) { function TestPipeConnsReadWriteConcurrent (line 222) | func TestPipeConnsReadWriteConcurrent(t *testing.T) { function testPipeConnsReadWriteSerial (line 228) | func testPipeConnsReadWriteSerial(t *testing.T) { function testPipeConnsReadWrite (line 236) | func testPipeConnsReadWrite(t *testing.T, c1, c2 net.Conn) { function TestPipeConnsCloseSerial (line 277) | func TestPipeConnsCloseSerial(t *testing.T) { function TestPipeConnsCloseConcurrent (line 283) | func TestPipeConnsCloseConcurrent(t *testing.T) { function testPipeConnsCloseSerial (line 289) | func testPipeConnsCloseSerial(t *testing.T) { function testPipeConnsClose (line 297) | func testPipeConnsClose(t *testing.T, c1, c2 net.Conn) { function testConcurrency (line 343) | func testConcurrency(t *testing.T, concurrency int, f func(*testing.T)) { function TestPipeConnsAddrDefault (line 361) | func TestPipeConnsAddrDefault(t *testing.T) { function TestPipeConnsAddrCustom (line 376) | func TestPipeConnsAddrCustom(t *testing.T) { FILE: fasthttputil/s2b.go function s2b (line 6) | func s2b(s string) []byte { FILE: fs.go function ServeFileBytesUncompressed (line 40) | func ServeFileBytesUncompressed(ctx *RequestCtx, path []byte) { function ServeFileUncompressed (line 57) | func ServeFileUncompressed(ctx *RequestCtx, path string) { function ServeFileBytes (line 80) | func ServeFileBytes(ctx *RequestCtx, path []byte) { function ServeFile (line 101) | func ServeFile(ctx *RequestCtx, path string) { function ServeFS (line 154) | func ServeFS(ctx *RequestCtx, filesystem fs.FS, path string) { type PathRewriteFunc (line 181) | type PathRewriteFunc function NewVHostPathRewriter (line 194) | func NewVHostPathRewriter(slashesCount int) PathRewriteFunc { function NewPathSlashesStripper (line 227) | func NewPathSlashesStripper(slashesCount int) PathRewriteFunc { function NewPathPrefixStripper (line 243) | func NewPathPrefixStripper(prefixSize int) PathRewriteFunc { type FS (line 257) | type FS struct method NewRequestHandler (line 437) | func (fs *FS) NewRequestHandler() RequestHandler { method normalizeRoot (line 442) | func (fs *FS) normalizeRoot(root string) string { method initRequestHandler (line 481) | func (fs *FS) initRequestHandler() { constant FSCompressedFileSuffix (line 378) | FSCompressedFileSuffix = ".fasthttp.gz" constant FSHandlerCacheDuration (line 391) | FSHandlerCacheDuration = 10 * time.Second function FSHandler (line 415) | func FSHandler(root string, stripSlashes int) RequestHandler { type fsHandler (line 531) | type fsHandler struct method pathToFilePath (line 1024) | func (h *fsHandler) pathToFilePath(path []byte, hasTrailingSlash bool)... method filePathToCompressed (line 1081) | func (h *fsHandler) filePathToCompressed(filePath string) string { method handleRequest (line 1091) | func (h *fsHandler) handleRequest(ctx *RequestCtx) { method openIndexFile (line 1309) | func (h *fsHandler) openIndexFile(ctx *RequestCtx, dirPath string, mus... method createDirIndex (line 1343) | func (h *fsHandler) createDirIndex(ctx *RequestCtx, dirPath string, mu... method compressAndOpenFSFile (line 1448) | func (h *fsHandler) compressAndOpenFSFile(filePath, fileEncoding strin... method compressFileNolock (line 1498) | func (h *fsHandler) compressFileNolock( method newCompressedFSFileCache (line 1560) | func (h *fsHandler) newCompressedFSFileCache(f fs.File, fileInfo fs.Fi... method newCompressedFSFile (line 1630) | func (h *fsHandler) newCompressedFSFile(filePath, fileEncoding string)... method openFSFile (line 1643) | func (h *fsHandler) openFSFile(filePath string, mustCompress bool, fil... method newFSFile (line 1698) | func (h *fsHandler) newFSFile(f fs.File, fileInfo fs.FileInfo, compres... type fsFile (line 551) | type fsFile struct method NewReader (line 570) | func (ff *fsFile) NewReader() (io.Reader, error) { method smallFileReader (line 577) | func (ff *fsFile) smallFileReader() io.Reader { method isBig (line 594) | func (ff *fsFile) isBig() bool { method bigFileReader (line 601) | func (ff *fsFile) bigFileReader() (io.Reader, error) { method Release (line 631) | func (ff *fsFile) Release() { method decReadersCount (line 645) | func (ff *fsFile) decReadersCount() { constant maxSmallFileSize (line 592) | maxSmallFileSize = 2 * 4096 type bigFileReader (line 656) | type bigFileReader struct method UpdateByteRange (line 663) | func (r *bigFileReader) UpdateByteRange(startPos, endPos int) error { method Read (line 677) | func (r *bigFileReader) Read(p []byte) (int, error) { method WriteTo (line 681) | func (r *bigFileReader) WriteTo(w io.Writer) (int64, error) { method Close (line 691) | func (r *bigFileReader) Close() error { type fsSmallFileReader (line 716) | type fsSmallFileReader struct method Close (line 722) | func (r *fsSmallFileReader) Close() error { method UpdateByteRange (line 732) | func (r *fsSmallFileReader) UpdateByteRange(startPos, endPos int) error { method Read (line 738) | func (r *fsSmallFileReader) Read(p []byte) (int, error) { method WriteTo (line 763) | func (r *fsSmallFileReader) WriteTo(w io.Writer) (int64, error) { type cacheManager (line 810) | type cacheManager interface type CacheKind (line 822) | type CacheKind constant defaultCacheKind (line 825) | defaultCacheKind CacheKind = iota constant brotliCacheKind (line 826) | brotliCacheKind constant gzipCacheKind (line 827) | gzipCacheKind constant zstdCacheKind (line 828) | zstdCacheKind function newCacheManager (line 831) | func newCacheManager(fs *FS) cacheManager { type noopCacheManager (line 854) | type noopCacheManager struct method Lock (line 858) | func (n *noopCacheManager) Lock() { method Unlock (line 862) | func (n *noopCacheManager) Unlock() { method GetFileFromCache (line 866) | func (*noopCacheManager) GetFileFromCache(cacheKind CacheKind, path []... method SetFileToCache (line 870) | func (n *noopCacheManager) SetFileToCache(cacheKind CacheKind, path []... type inMemoryCacheManager (line 877) | type inMemoryCacheManager struct method Lock (line 886) | func (cm *inMemoryCacheManager) Lock() { method Unlock (line 890) | func (cm *inMemoryCacheManager) Unlock() { method getFsCache (line 894) | func (cm *inMemoryCacheManager) getFsCache(cacheKind CacheKind) map[st... method GetFileFromCache (line 908) | func (cm *inMemoryCacheManager) GetFileFromCache(cacheKind CacheKind, ... method SetFileToCache (line 921) | func (cm *inMemoryCacheManager) SetFileToCache(cacheKind CacheKind, pa... method handleCleanCache (line 945) | func (cm *inMemoryCacheManager) handleCleanCache(cleanStop chan struct... method cleanCache (line 973) | func (cm *inMemoryCacheManager) cleanCache(pendingFiles []*fsFile) []*... function cleanCacheNolock (line 1004) | func cleanCacheNolock( type byteRangeUpdater (line 1252) | type byteRangeUpdater interface function ParseByteRange (line 1259) | func ParseByteRange(byteRange []byte, contentLength int) (startPos, endP... constant fsMinCompressRatio (line 1444) | fsMinCompressRatio = 0.8 constant fsMaxCompressibleFileSize (line 1445) | fsMaxCompressibleFileSize = 8 * 1024 * 1024 function readFileHeader (line 1733) | func readFileHeader(f io.Reader, compressed bool, fileEncoding string) (... function stripLeadingSlashes (line 1789) | func stripLeadingSlashes(path []byte, stripSlashes int) []byte { function fileExtension (line 1806) | func fileExtension(path string, compressed bool, compressedFileSuffix st... function FileLastModified (line 1818) | func FileLastModified(path string) (time.Time, error) { function fsModTime (line 1831) | func fsModTime(t time.Time) time.Time { function getFileLock (line 1837) | func getFileLock(absPath string) *sync.Mutex { type osFS (line 1845) | type osFS struct method Open (line 1847) | func (o *osFS) Open(name string) (fs.File, error) { return os.Open... method Stat (line 1848) | func (o *osFS) Stat(name string) (fs.FileInfo, error) { return os.Stat... FILE: fs_example_test.go function ExampleFS (line 9) | func ExampleFS() { FILE: fs_fs_test.go function TestFSServeFileHead (line 20) | func TestFSServeFileHead(t *testing.T) { function TestFSServeFileCompressed (line 59) | func TestFSServeFileCompressed(t *testing.T) { function TestFSServeFileUncompressed (line 171) | func TestFSServeFileUncompressed(t *testing.T) { function TestFSFSByteRangeConcurrent (line 213) | func TestFSFSByteRangeConcurrent(t *testing.T) { function TestFSFSByteRangeSingleThread (line 248) | func TestFSFSByteRangeSingleThread(t *testing.T) { function TestFSFSCompressConcurrent (line 266) | func TestFSFSCompressConcurrent(t *testing.T) { function TestFSFSCompressSingleThread (line 309) | func TestFSFSCompressSingleThread(t *testing.T) { function testFSFSCompress (line 331) | func testFSFSCompress(t *testing.T, h RequestHandler, filePath string) { function TestFSServeFileContentType (line 462) | func TestFSServeFileContentType(t *testing.T) { function TestFSServeFileDirectoryRedirect (line 486) | func TestFSServeFileDirectoryRedirect(t *testing.T) { function TestDirFSServeFileHead (line 518) | func TestDirFSServeFileHead(t *testing.T) { function TestDirFSServeFileCompressed (line 557) | func TestDirFSServeFileCompressed(t *testing.T) { function TestDirFSFSByteRangeConcurrent (line 669) | func TestDirFSFSByteRangeConcurrent(t *testing.T) { function TestDirFSFSByteRangeSingleThread (line 704) | func TestDirFSFSByteRangeSingleThread(t *testing.T) { function TestDirFSFSCompressConcurrent (line 722) | func TestDirFSFSCompressConcurrent(t *testing.T) { function TestDirFSFSCompressSingleThread (line 761) | func TestDirFSFSCompressSingleThread(t *testing.T) { function TestDirFSServeFileContentType (line 783) | func TestDirFSServeFileContentType(t *testing.T) { function TestDirFSServeFileDirectoryRedirect (line 807) | func TestDirFSServeFileDirectoryRedirect(t *testing.T) { function TestFSFSGenerateIndexOsDirFS (line 837) | func TestFSFSGenerateIndexOsDirFS(t *testing.T) { function TestFSRootEnforcement (line 919) | func TestFSRootEnforcement(t *testing.T) { FILE: fs_handler_example_test.go function requestHandler (line 31) | func requestHandler(ctx *fasthttp.RequestCtx) { function ExampleFSHandler (line 43) | func ExampleFSHandler() { FILE: fs_test.go type TestLogger (line 18) | type TestLogger struct method Printf (line 22) | func (t TestLogger) Printf(format string, args ...any) { function TestNewVHostPathRewriter (line 26) | func TestNewVHostPathRewriter(t *testing.T) { function TestNewVHostPathRewriterMaliciousHost (line 52) | func TestNewVHostPathRewriterMaliciousHost(t *testing.T) { function testPathNotFound (line 69) | func testPathNotFound(t *testing.T, pathNotFoundFunc RequestHandler) { function TestPathNotFound (line 102) | func TestPathNotFound(t *testing.T) { function TestPathNotFoundFunc (line 108) | func TestPathNotFoundFunc(t *testing.T) { function TestServeFileHead (line 116) | func TestServeFileHead(t *testing.T) { function TestServeFileSmallNoReadFrom (line 155) | func TestServeFileSmallNoReadFrom(t *testing.T) { type pureWriter (line 195) | type pureWriter struct method Write (line 199) | func (pw pureWriter) Write(p []byte) (nn int, err error) { function TestServeFileCompressed (line 203) | func TestServeFileCompressed(t *testing.T) { function TestServeFileUncompressed (line 315) | func TestServeFileUncompressed(t *testing.T) { function TestFSByteRangeConcurrent (line 357) | func TestFSByteRangeConcurrent(t *testing.T) { function TestFSByteRangeConcurrentSkipCache (line 370) | func TestFSByteRangeConcurrentSkipCache(t *testing.T) { function runFSByteRangeConcurrent (line 384) | func runFSByteRangeConcurrent(t *testing.T, fs *FS) { function TestFSByteRangeSingleThread (line 410) | func TestFSByteRangeSingleThread(t *testing.T) { function TestFSByteRangeSingleThreadSkipCache (line 423) | func TestFSByteRangeSingleThreadSkipCache(t *testing.T) { function runFSByteRangeSingleThread (line 437) | func runFSByteRangeSingleThread(t *testing.T, fs *FS) { function testFSByteRange (line 446) | func testFSByteRange(t *testing.T, h RequestHandler, filePath string) { function getFileContents (line 497) | func getFileContents(path string) ([]byte, error) { function TestParseByteRangeSuccess (line 507) | func TestParseByteRangeSuccess(t *testing.T) { function testParseByteRangeSuccess (line 527) | func testParseByteRangeSuccess(t *testing.T, v string, contentLength, st... function TestParseByteRangeError (line 542) | func TestParseByteRangeError(t *testing.T) { function testParseByteRangeError (line 569) | func testParseByteRangeError(t *testing.T, v string, contentLength int) { function TestFSCompressConcurrent (line 578) | func TestFSCompressConcurrent(t *testing.T) { function TestFSCompressConcurrentSkipCache (line 598) | func TestFSCompressConcurrentSkipCache(t *testing.T) { function runFSCompressConcurrent (line 619) | func runFSCompressConcurrent(t *testing.T, fs *FS) { function TestFSCompressSingleThread (line 646) | func TestFSCompressSingleThread(t *testing.T) { function TestFSCompressSingleThreadSkipCache (line 662) | func TestFSCompressSingleThreadSkipCache(t *testing.T) { function runFSCompressSingleThread (line 679) | func runFSCompressSingleThread(t *testing.T, fs *FS) { function testFSCompress (line 689) | func testFSCompress(t *testing.T, h RequestHandler, filePath string) { function TestFSHandlerSingleThread (line 827) | func TestFSHandlerSingleThread(t *testing.T) { function TestFSHandlerConcurrent (line 849) | func TestFSHandlerConcurrent(t *testing.T) { function fsHandlerTest (line 886) | func fsHandlerTest(t *testing.T, requestHandler RequestHandler, filename... function TestStripPathSlashes (line 945) | func TestStripPathSlashes(t *testing.T) { function testStripPathSlashes (line 959) | func testStripPathSlashes(t *testing.T, path string, stripSlashes int, e... function TestFileExtension (line 968) | func TestFileExtension(t *testing.T) { function testFileExtension (line 984) | func testFileExtension(t *testing.T, path string, compressed bool, compr... function TestServeFileContentType (line 993) | func TestServeFileContentType(t *testing.T) { function TestServeFileDirectoryRedirect (line 1017) | func TestServeFileDirectoryRedirect(t *testing.T) { function TestFileCacheForZstd (line 1051) | func TestFileCacheForZstd(t *testing.T) { FILE: fuzz_test.go function FuzzCookieParse (line 16) | func FuzzCookieParse(f *testing.F) { function FuzzVisitHeaderParams (line 33) | func FuzzVisitHeaderParams(f *testing.F) { function FuzzResponseReadLimitBody (line 49) | func FuzzResponseReadLimitBody(f *testing.F) { function FuzzRequestReadLimitBody (line 77) | func FuzzRequestReadLimitBody(f *testing.F) { function FuzzURIUpdateBytes (line 96) | func FuzzURIUpdateBytes(f *testing.F) { function FuzzURIParse (line 114) | func FuzzURIParse(f *testing.F) { function FuzzTestHeaderScanner (line 153) | func FuzzTestHeaderScanner(f *testing.F) { function FuzzRequestReadLimitBodyAllocations (line 209) | func FuzzRequestReadLimitBodyAllocations(f *testing.F) { FILE: header.go constant rChar (line 16) | rChar = byte('\r') constant nChar (line 17) | nChar = byte('\n') type header (line 20) | type header struct method ConnectionClose (line 161) | func (h *header) ConnectionClose() bool { method SetConnectionClose (line 166) | func (h *header) SetConnectionClose() { method ResetConnectionClose (line 171) | func (h *header) ResetConnectionClose() { method SetContentType (line 298) | func (h *header) SetContentType(contentType string) { method SetContentTypeBytes (line 303) | func (h *header) SetContentTypeBytes(contentType []byte) { method SetTrailer (line 419) | func (h *header) SetTrailer(trailer string) error { method SetTrailerBytes (line 440) | func (h *header) SetTrailerBytes(trailer []byte) error { method AddTrailer (line 462) | func (h *header) AddTrailer(trailer string) error { method AddTrailerBytes (line 500) | func (h *header) AddTrailerBytes(trailer []byte) (err error) { method Protocol (line 760) | func (h *header) Protocol() []byte { method IsHTTP11 (line 848) | func (h *header) IsHTTP11() bool { method DisableNormalizing (line 933) | func (h *header) DisableNormalizing() bool { method EnableNormalizing (line 952) | func (h *header) EnableNormalizing() bool { method SetNoDefaultContentType (line 959) | func (h *header) SetNoDefaultContentType(noDefaultContentType bool) { method copyTo (line 1022) | func (h *header) copyTo(dst *header) { method Trailers (line 1127) | func (h *header) Trailers() iter.Seq[[]byte] { method VisitAllTrailer (line 1142) | func (h *header) VisitAllTrailer(f func(value []byte)) { method setNonSpecial (line 1455) | func (h *header) setNonSpecial(key, value []byte) { method PeekTrailerKeys (line 2095) | func (h *header) PeekTrailerKeys() [][]byte { method ReadTrailer (line 2180) | func (h *header) ReadTrailer(r *bufio.Reader) error { method tryReadTrailer (line 2194) | func (h *header) tryReadTrailer(r *bufio.Reader, n int) error { type ResponseHeader (line 49) | type ResponseHeader struct method SetContentRange (line 90) | func (h *ResponseHeader) SetContentRange(startPos, endPos, contentLeng... method StatusCode (line 127) | func (h *ResponseHeader) StatusCode() int { method SetStatusCode (line 135) | func (h *ResponseHeader) SetStatusCode(statusCode int) { method StatusMessage (line 140) | func (h *ResponseHeader) StatusMessage() []byte { method SetStatusMessage (line 145) | func (h *ResponseHeader) SetStatusMessage(statusMessage []byte) { method SetProtocol (line 150) | func (h *ResponseHeader) SetProtocol(protocol []byte) { method SetLastModified (line 155) | func (h *ResponseHeader) SetLastModified(t time.Time) { method ConnectionUpgrade (line 179) | func (h *ResponseHeader) ConnectionUpgrade() bool { method PeekCookie (line 189) | func (h *ResponseHeader) PeekCookie(key string) []byte { method ContentLength (line 198) | func (h *ResponseHeader) ContentLength() int { method SetContentLength (line 233) | func (h *ResponseHeader) SetContentLength(contentLength int) { method mustSkipContentLength (line 250) | func (h *ResponseHeader) mustSkipContentLength() bool { method isCompressibleContentType (line 278) | func (h *ResponseHeader) isCompressibleContentType() bool { method ContentType (line 289) | func (h *ResponseHeader) ContentType() []byte { method ContentEncoding (line 308) | func (h *ResponseHeader) ContentEncoding() []byte { method SetContentEncoding (line 313) | func (h *ResponseHeader) SetContentEncoding(contentEncoding string) { method SetContentEncodingBytes (line 318) | func (h *ResponseHeader) SetContentEncodingBytes(contentEncoding []byt... method addVaryBytes (line 323) | func (h *ResponseHeader) addVaryBytes(value []byte) { method Server (line 335) | func (h *ResponseHeader) Server() []byte { method SetServer (line 340) | func (h *ResponseHeader) SetServer(server string) { method SetServerBytes (line 345) | func (h *ResponseHeader) SetServerBytes(server []byte) { method Len (line 879) | func (h *ResponseHeader) Len() int { method Reset (line 964) | func (h *ResponseHeader) Reset() { method resetSkipNormalize (line 971) | func (h *ResponseHeader) resetSkipNormalize() { method CopyTo (line 1038) | func (h *ResponseHeader) CopyTo(dst *ResponseHeader) { method All (line 1072) | func (h *ResponseHeader) All() iter.Seq2[[]byte, []byte] { method VisitAll (line 1117) | func (h *ResponseHeader) VisitAll(f func(key, value []byte)) { method Cookies (line 1161) | func (h *ResponseHeader) Cookies() iter.Seq2[[]byte, []byte] { method VisitAllCookie (line 1180) | func (h *ResponseHeader) VisitAllCookie(f func(key, value []byte)) { method Del (line 1328) | func (h *ResponseHeader) Del(key string) { method DelBytes (line 1334) | func (h *ResponseHeader) DelBytes(key []byte) { method del (line 1340) | func (h *ResponseHeader) del(key []byte) { method setSpecialHeader (line 1396) | func (h *ResponseHeader) setSpecialHeader(key, value []byte) bool { method Add (line 1524) | func (h *ResponseHeader) Add(key, value string) { method AddBytesK (line 1539) | func (h *ResponseHeader) AddBytesK(key []byte, value string) { method AddBytesV (line 1554) | func (h *ResponseHeader) AddBytesV(key string, value []byte) { method AddBytesKV (line 1569) | func (h *ResponseHeader) AddBytesKV(key, value []byte) { method Set (line 1587) | func (h *ResponseHeader) Set(key, value string) { method SetBytesK (line 1601) | func (h *ResponseHeader) SetBytesK(key []byte, value string) { method SetBytesV (line 1615) | func (h *ResponseHeader) SetBytesV(key string, value []byte) { method SetBytesKV (line 1629) | func (h *ResponseHeader) SetBytesKV(key, value []byte) { method SetCanonical (line 1643) | func (h *ResponseHeader) SetCanonical(key, value []byte) { method SetCookie (line 1653) | func (h *ResponseHeader) SetCookie(cookie *Cookie) { method DelClientCookie (line 1686) | func (h *ResponseHeader) DelClientCookie(key string) { method DelClientCookieBytes (line 1709) | func (h *ResponseHeader) DelClientCookieBytes(key []byte) { method DelCookie (line 1717) | func (h *ResponseHeader) DelCookie(key string) { method DelCookieBytes (line 1725) | func (h *ResponseHeader) DelCookieBytes(key []byte) { method DelAllCookies (line 1741) | func (h *ResponseHeader) DelAllCookies() { method Peek (line 1881) | func (h *ResponseHeader) Peek(key string) []byte { method PeekBytes (line 1891) | func (h *ResponseHeader) PeekBytes(key []byte) []byte { method peek (line 1918) | func (h *ResponseHeader) peek(key []byte) []byte { method PeekAll (line 2023) | func (h *ResponseHeader) PeekAll(key string) [][]byte { method peekAll (line 2028) | func (h *ResponseHeader) peekAll(key []byte) [][]byte { method PeekKeys (line 2081) | func (h *ResponseHeader) PeekKeys() [][]byte { method Cookie (line 2114) | func (h *ResponseHeader) Cookie(cookie *Cookie) bool { method Read (line 2126) | func (h *ResponseHeader) Read(r *bufio.Reader) error { method tryRead (line 2141) | func (h *ResponseHeader) tryRead(r *bufio.Reader, n int) error { method Write (line 2368) | func (h *ResponseHeader) Write(w *bufio.Writer) error { method WriteTo (line 2376) | func (h *ResponseHeader) WriteTo(w io.Writer) (int64, error) { method Header (line 2388) | func (h *ResponseHeader) Header() []byte { method writeTrailer (line 2394) | func (h *ResponseHeader) writeTrailer(w *bufio.Writer) error { method TrailerHeader (line 2406) | func (h *ResponseHeader) TrailerHeader() []byte { method String (line 2417) | func (h *ResponseHeader) String() string { method appendStatusLine (line 2423) | func (h *ResponseHeader) appendStatusLine(dst []byte) []byte { method AppendBytes (line 2433) | func (h *ResponseHeader) AppendBytes(dst []byte) []byte { method parse (line 2641) | func (h *ResponseHeader) parse(buf []byte) (int, error) { method parseFirstLine (line 2775) | func (h *ResponseHeader) parseFirstLine(buf []byte) (int, error) { method parseHeaders (line 2939) | func (h *ResponseHeader) parseHeaders(buf []byte) (int, error) { type RequestHeader (line 70) | type RequestHeader struct method SetByteRange (line 108) | func (h *RequestHeader) SetByteRange(startPos, endPos int) { method ConnectionUpgrade (line 184) | func (h *RequestHeader) ConnectionUpgrade() bool { method ContentLength (line 207) | func (h *RequestHeader) ContentLength() int { method SetContentLength (line 267) | func (h *RequestHeader) SetContentLength(contentLength int) { method ContentType (line 350) | func (h *RequestHeader) ContentType() []byte { method ContentEncoding (line 358) | func (h *RequestHeader) ContentEncoding() []byte { method SetContentEncoding (line 363) | func (h *RequestHeader) SetContentEncoding(contentEncoding string) { method SetContentEncodingBytes (line 368) | func (h *RequestHeader) SetContentEncodingBytes(contentEncoding []byte) { method SetMultipartFormBoundary (line 375) | func (h *RequestHeader) SetMultipartFormBoundary(boundary string) { method SetMultipartFormBoundaryBytes (line 390) | func (h *RequestHeader) SetMultipartFormBoundaryBytes(boundary []byte) { method MultipartFormBoundary (line 650) | func (h *RequestHeader) MultipartFormBoundary() []byte { method Host (line 691) | func (h *RequestHeader) Host() []byte { method SetHost (line 699) | func (h *RequestHeader) SetHost(host string) { method SetHostBytes (line 704) | func (h *RequestHeader) SetHostBytes(host []byte) { method UserAgent (line 709) | func (h *RequestHeader) UserAgent() []byte { method SetUserAgent (line 717) | func (h *RequestHeader) SetUserAgent(userAgent string) { method SetUserAgentBytes (line 722) | func (h *RequestHeader) SetUserAgentBytes(userAgent []byte) { method Referer (line 727) | func (h *RequestHeader) Referer() []byte { method SetReferer (line 732) | func (h *RequestHeader) SetReferer(referer string) { method SetRefererBytes (line 737) | func (h *RequestHeader) SetRefererBytes(referer []byte) { method Method (line 742) | func (h *RequestHeader) Method() []byte { method SetMethod (line 750) | func (h *RequestHeader) SetMethod(method string) { method SetMethodBytes (line 755) | func (h *RequestHeader) SetMethodBytes(method []byte) { method SetProtocol (line 768) | func (h *RequestHeader) SetProtocol(protocol string) { method SetProtocolBytes (line 774) | func (h *RequestHeader) SetProtocolBytes(protocol []byte) { method RequestURI (line 780) | func (h *RequestHeader) RequestURI() []byte { method SetRequestURI (line 791) | func (h *RequestHeader) SetRequestURI(requestURI string) { method SetRequestURIBytes (line 798) | func (h *RequestHeader) SetRequestURIBytes(requestURI []byte) { method IsGet (line 803) | func (h *RequestHeader) IsGet() bool { method IsPost (line 808) | func (h *RequestHeader) IsPost() bool { method IsPut (line 813) | func (h *RequestHeader) IsPut() bool { method IsHead (line 818) | func (h *RequestHeader) IsHead() bool { method IsDelete (line 823) | func (h *RequestHeader) IsDelete() bool { method IsConnect (line 828) | func (h *RequestHeader) IsConnect() bool { method IsOptions (line 833) | func (h *RequestHeader) IsOptions() bool { method IsTrace (line 838) | func (h *RequestHeader) IsTrace() bool { method IsPatch (line 843) | func (h *RequestHeader) IsPatch() bool { method HasAcceptEncoding (line 854) | func (h *RequestHeader) HasAcceptEncoding(acceptEncoding string) bool { method HasAcceptEncodingBytes (line 861) | func (h *RequestHeader) HasAcceptEncodingBytes(acceptEncoding []byte) ... method Len (line 889) | func (h *RequestHeader) Len() int { method DisableSpecialHeader (line 904) | func (h *RequestHeader) DisableSpecialHeader() bool { method EnableSpecialHeader (line 914) | func (h *RequestHeader) EnableSpecialHeader() bool { method Reset (line 992) | func (h *RequestHeader) Reset() { method resetSkipNormalize (line 999) | func (h *RequestHeader) resetSkipNormalize() { method CopyTo (line 1051) | func (h *RequestHeader) CopyTo(dst *RequestHeader) { method Cookies (line 1195) | func (h *RequestHeader) Cookies() iter.Seq2[[]byte, []byte] { method VisitAllCookie (line 1211) | func (h *RequestHeader) VisitAllCookie(f func(key, value []byte)) { method All (line 1228) | func (h *RequestHeader) All() iter.Seq2[[]byte, []byte] { method VisitAll (line 1277) | func (h *RequestHeader) VisitAll(f func(key, value []byte)) { method AllInOrder (line 1296) | func (h *RequestHeader) AllInOrder() iter.Seq2[[]byte, []byte] { method VisitAllInOrder (line 1320) | func (h *RequestHeader) VisitAllInOrder(f func(key, value []byte)) { method Del (line 1362) | func (h *RequestHeader) Del(key string) { method DelBytes (line 1368) | func (h *RequestHeader) DelBytes(key []byte) { method del (line 1374) | func (h *RequestHeader) del(key []byte) { method setSpecialHeader (line 1460) | func (h *RequestHeader) setSpecialHeader(key, value []byte) bool { method SetCookie (line 1658) | func (h *RequestHeader) SetCookie(key, value string) { method SetCookieBytesK (line 1664) | func (h *RequestHeader) SetCookieBytesK(key []byte, value string) { method SetCookieBytesKV (line 1669) | func (h *RequestHeader) SetCookieBytesKV(key, value []byte) { method DelCookie (line 1730) | func (h *RequestHeader) DelCookie(key string) { method DelCookieBytes (line 1736) | func (h *RequestHeader) DelCookieBytes(key []byte) { method DelAllCookies (line 1746) | func (h *RequestHeader) DelAllCookies() { method Add (line 1758) | func (h *RequestHeader) Add(key, value string) { method AddBytesK (line 1769) | func (h *RequestHeader) AddBytesK(key []byte, value string) { method AddBytesV (line 1780) | func (h *RequestHeader) AddBytesV(key string, value []byte) { method AddBytesKV (line 1795) | func (h *RequestHeader) AddBytesKV(key, value []byte) { method Set (line 1813) | func (h *RequestHeader) Set(key, value string) { method SetBytesK (line 1827) | func (h *RequestHeader) SetBytesK(key []byte, value string) { method SetBytesV (line 1841) | func (h *RequestHeader) SetBytesV(key string, value []byte) { method SetBytesKV (line 1855) | func (h *RequestHeader) SetBytesKV(key, value []byte) { method SetCanonical (line 1869) | func (h *RequestHeader) SetCanonical(key, value []byte) { method Peek (line 1902) | func (h *RequestHeader) Peek(key string) []byte { method PeekBytes (line 1912) | func (h *RequestHeader) PeekBytes(key []byte) []byte { method peek (line 1942) | func (h *RequestHeader) peek(key []byte) []byte { method PeekAll (line 1975) | func (h *RequestHeader) PeekAll(key string) [][]byte { method peekAll (line 1980) | func (h *RequestHeader) peekAll(key []byte) [][]byte { method PeekKeys (line 2067) | func (h *RequestHeader) PeekKeys() [][]byte { method Cookie (line 2100) | func (h *RequestHeader) Cookie(key string) []byte { method CookieBytes (line 2106) | func (h *RequestHeader) CookieBytes(key []byte) []byte { method Read (line 2265) | func (h *RequestHeader) Read(r *bufio.Reader) error { method readLoop (line 2272) | func (h *RequestHeader) readLoop(r *bufio.Reader, waitForMore bool) er... method tryRead (line 2287) | func (h *RequestHeader) tryRead(r *bufio.Reader, n int) error { method Write (line 2500) | func (h *RequestHeader) Write(w *bufio.Writer) error { method WriteTo (line 2508) | func (h *RequestHeader) WriteTo(w io.Writer) (int64, error) { method Header (line 2520) | func (h *RequestHeader) Header() []byte { method writeTrailer (line 2526) | func (h *RequestHeader) writeTrailer(w *bufio.Writer) error { method TrailerHeader (line 2538) | func (h *RequestHeader) TrailerHeader() []byte { method RawHeaders (line 2558) | func (h *RequestHeader) RawHeaders() []byte { method String (line 2563) | func (h *RequestHeader) String() string { method AppendBytes (line 2569) | func (h *RequestHeader) AppendBytes(dst []byte) []byte { method ignoreBody (line 2653) | func (h *RequestHeader) ignoreBody() bool { method parse (line 2657) | func (h *RequestHeader) parse(buf []byte) (int, error) { method parseFirstLine (line 2826) | func (h *RequestHeader) parseFirstLine(buf []byte) (int, error) { method parseHeaders (line 3064) | func (h *RequestHeader) parseHeaders(buf []byte) (int, error) { method collectCookies (line 3194) | func (h *RequestHeader) collectCookies() { function validHeaderFieldByte (line 536) | func validHeaderFieldByte(c byte) bool { function validHeaderValueByte (line 542) | func validHeaderValueByte(c byte) bool { function isValidHeaderKey (line 547) | func isValidHeaderKey(a []byte) bool { function VisitHeaderParams (line 583) | func VisitHeaderParams(b []byte, f func(key, value []byte) bool) { function headerError (line 2233) | func headerError(typ string, err, errParse error, b []byte, secureErrorL... function headerErrorMsg (line 2255) | func headerErrorMsg(typ string, err error, b []byte, secureErrorLogMessa... function bufferSnippet (line 2323) | func bufferSnippet(b []byte) string { function isOnlyCRLF (line 2338) | func isOnlyCRLF(b []byte) bool { function updateServerDate (line 2347) | func updateServerDate() { function refreshServerDate (line 2362) | func refreshServerDate() { function appendHeaderLine (line 2634) | func appendHeaderLine(dst, key, value []byte) []byte { function parseTrailer (line 2675) | func parseTrailer(src []byte, dest []argsKV, disableNormalizing bool) ([... function isBadTrailer (line 2718) | func isBadTrailer(key []byte) bool { function isValidMethod (line 2817) | func isValidMethod(method []byte) bool { function readRawHeaders (line 2911) | func readRawHeaders(dst, buf []byte) ([]byte, int, error) { function parseContentLength (line 3214) | func parseContentLength(b []byte) (int, error) { type headerValueScanner (line 3225) | type headerValueScanner struct method next (line 3230) | func (s *headerValueScanner) next() bool { function stripSpace (line 3246) | func stripSpace(b []byte) []byte { function hasHeaderValue (line 3256) | func hasHeaderValue(s, value []byte) bool { function nextLine (line 3267) | func nextLine(b []byte) ([]byte, []byte, error) { function initHeaderKV (line 3279) | func initHeaderKV(bufK, bufV []byte, key, value string, disableNormalizi... function getHeaderKeyBytes (line 3287) | func getHeaderKeyBytes(bufK []byte, key string, disableNormalizing bool)... function normalizeHeaderKey (line 3293) | func normalizeHeaderKey(b []byte, disableNormalizing bool) { function removeNewLines (line 3323) | func removeNewLines(raw []byte) []byte { function AppendNormalizedHeaderKey (line 3364) | func AppendNormalizedHeaderKey(dst []byte, key string) []byte { function AppendNormalizedHeaderKeyBytes (line 3380) | func AppendNormalizedHeaderKeyBytes(dst, key []byte) []byte { function appendTrailerBytes (line 3384) | func appendTrailerBytes(dst []byte, trailer [][]byte, sep []byte) []byte { function copyTrailer (line 3394) | func copyTrailer(dst, src [][]byte) [][]byte { type ErrNothingRead (line 3415) | type ErrNothingRead struct type ErrSmallBuffer (line 3424) | type ErrSmallBuffer struct function mustPeekBuffered (line 3428) | func mustPeekBuffered(r *bufio.Reader) []byte { function mustDiscard (line 3436) | func mustDiscard(r *bufio.Reader, n int) { FILE: header_regression_test.go function TestIssue28ResponseWithoutBodyNoContentType (line 11) | func TestIssue28ResponseWithoutBodyNoContentType(t *testing.T) { function TestIssue6RequestHeaderSetContentType (line 45) | func TestIssue6RequestHeaderSetContentType(t *testing.T) { function testIssue6RequestHeaderSetContentType (line 54) | func testIssue6RequestHeaderSetContentType(t *testing.T, method string) { function issue6VerifyRequestHeader (line 77) | func issue6VerifyRequestHeader(t *testing.T, h *RequestHeader, contentTy... FILE: header_test.go function TestResponseHeaderAddContentType (line 17) | func TestResponseHeaderAddContentType(t *testing.T) { function TestResponseHeaderAddContentEncoding (line 39) | func TestResponseHeaderAddContentEncoding(t *testing.T) { function TestResponseHeaderMultiLineValue (line 61) | func TestResponseHeaderMultiLineValue(t *testing.T) { function TestIssue1808 (line 116) | func TestIssue1808(t *testing.T) { function TestResponseHeaderMultiLinePanicked (line 163) | func TestResponseHeaderMultiLinePanicked(t *testing.T) { function TestRequestHeaderLooseBackslashR (line 174) | func TestRequestHeaderLooseBackslashR(t *testing.T) { function TestResponseHeaderEmptyValueFromHeader (line 187) | func TestResponseHeaderEmptyValueFromHeader(t *testing.T) { function TestResponseHeaderEmptyValueFromString (line 214) | func TestResponseHeaderEmptyValueFromString(t *testing.T) { function TestRequestHeaderEmptyValueFromHeader (line 241) | func TestRequestHeaderEmptyValueFromHeader(t *testing.T) { function TestRequestHeaderEmptyValueFromString (line 269) | func TestRequestHeaderEmptyValueFromString(t *testing.T) { function TestRequestRawHeaders (line 295) | func TestRequestRawHeaders(t *testing.T) { function TestRequestDisableSpecialHeaders (line 395) | func TestRequestDisableSpecialHeaders(t *testing.T) { function TestRequestDisableSpecialHeadersChunked (line 454) | func TestRequestDisableSpecialHeadersChunked(t *testing.T) { function TestRequestDisableSpecialHeadersIdentity (line 487) | func TestRequestDisableSpecialHeadersIdentity(t *testing.T) { function TestRequestHeaderSetCookieWithSpecialChars (line 509) | func TestRequestHeaderSetCookieWithSpecialChars(t *testing.T) { function TestResponseHeaderDefaultStatusCode (line 536) | func TestResponseHeaderDefaultStatusCode(t *testing.T) { function TestResponseHeaderDelClientCookie (line 546) | func TestResponseHeaderDelClientCookie(t *testing.T) { function TestResponseHeaderAdd (line 570) | func TestResponseHeaderAdd(t *testing.T) { function TestRequestHeaderAdd (line 623) | func TestRequestHeaderAdd(t *testing.T) { function TestHasHeaderValue (line 680) | func TestHasHeaderValue(t *testing.T) { function testHasHeaderValue (line 698) | func testHasHeaderValue(t *testing.T, s, value string, has bool) { function TestRequestHeaderDel (line 705) | func TestRequestHeaderDel(t *testing.T) { function TestResponseHeaderDel (line 774) | func TestResponseHeaderDel(t *testing.T) { function TestResponseHeaderSetTrailerGetBytes (line 841) | func TestResponseHeaderSetTrailerGetBytes(t *testing.T) { function TestRequestHeaderSetTrailerGetBytes (line 864) | func TestRequestHeaderSetTrailerGetBytes(t *testing.T) { function TestAppendNormalizedHeaderKeyBytes (line 886) | func TestAppendNormalizedHeaderKeyBytes(t *testing.T) { function testAppendNormalizedHeaderKeyBytes (line 894) | func testAppendNormalizedHeaderKeyBytes(t *testing.T, key, expectedKey s... function TestRequestHeaderHTTP10ConnectionClose (line 903) | func TestRequestHeaderHTTP10ConnectionClose(t *testing.T) { function TestRequestHeaderHTTP10ConnectionKeepAlive (line 918) | func TestRequestHeaderHTTP10ConnectionKeepAlive(t *testing.T) { function TestBufferSnippet (line 933) | func TestBufferSnippet(t *testing.T) { function testBufferSnippet (line 958) | func testBufferSnippet(t *testing.T, buf, expectedSnippet string) { function TestResponseHeaderTrailingCRLFSuccess (line 965) | func TestResponseHeaderTrailingCRLFSuccess(t *testing.T) { function TestResponseHeaderTrailingCRLFError (line 987) | func TestResponseHeaderTrailingCRLFError(t *testing.T) { function TestRequestHeaderTrailingCRLFSuccess (line 1009) | func TestRequestHeaderTrailingCRLFSuccess(t *testing.T) { function TestRequestHeaderTrailingCRLFError (line 1031) | func TestRequestHeaderTrailingCRLFError(t *testing.T) { function TestRequestHeaderReadEOF (line 1053) | func TestRequestHeaderReadEOF(t *testing.T) { function TestResponseHeaderReadEOF (line 1078) | func TestResponseHeaderReadEOF(t *testing.T) { function TestResponseHeaderOldVersion (line 1103) | func TestResponseHeaderOldVersion(t *testing.T) { function TestRequestHeaderSetByteRange (line 1126) | func TestRequestHeaderSetByteRange(t *testing.T) { function testRequestHeaderSetByteRange (line 1134) | func testRequestHeaderSetByteRange(t *testing.T, startPos, endPos int, e... function TestResponseHeaderSetContentRange (line 1143) | func TestResponseHeaderSetContentRange(t *testing.T) { function testResponseHeaderSetContentRange (line 1150) | func testResponseHeaderSetContentRange(t *testing.T, startPos, endPos, c... function TestRequestHeaderHasAcceptEncoding (line 1160) | func TestRequestHeaderHasAcceptEncoding(t *testing.T) { function testRequestHeaderHasAcceptEncoding (line 1178) | func testRequestHeaderHasAcceptEncoding(t *testing.T, ae, v string, resu... function TestVisitHeaderParams (line 1187) | func TestVisitHeaderParams(t *testing.T) { function testVisitHeaderParams (line 1218) | func testVisitHeaderParams(t *testing.T, header string, expectedParams [... function TestRequestMultipartFormBoundary (line 1236) | func TestRequestMultipartFormBoundary(t *testing.T) { function testRequestMultipartFormBoundary (line 1264) | func testRequestMultipartFormBoundary(t *testing.T, s, boundary string) { function TestResponseHeaderConnectionUpgrade (line 1278) | func TestResponseHeaderConnectionUpgrade(t *testing.T) { function testResponseHeaderConnectionUpgrade (line 1301) | func testResponseHeaderConnectionUpgrade(t *testing.T, s string, isUpgra... function TestRequestHeaderConnectionUpgrade (line 1321) | func TestRequestHeaderConnectionUpgrade(t *testing.T) { function testRequestHeaderConnectionUpgrade (line 1348) | func testRequestHeaderConnectionUpgrade(t *testing.T, s string, isUpgrad... function TestRequestHeaderProxyWithCookie (line 1368) | func TestRequestHeaderProxyWithCookie(t *testing.T) { function TestResponseHeaderFirstByteReadEOF (line 1415) | func TestResponseHeaderFirstByteReadEOF(t *testing.T) { type errorReader (line 1431) | type errorReader struct method Read (line 1435) | func (r *errorReader) Read(p []byte) (int, error) { function TestRequestHeaderEmptyMethod (line 1439) | func TestRequestHeaderEmptyMethod(t *testing.T) { function TestResponseHeaderHTTPVer (line 1449) | func TestResponseHeaderHTTPVer(t *testing.T) { function TestRequestHeaderHTTPVer (line 1461) | func TestRequestHeaderHTTPVer(t *testing.T) { function testResponseHeaderHTTPVer (line 1472) | func testResponseHeaderHTTPVer(t *testing.T, s string, connectionClose b... function testRequestHeaderHTTPVer (line 1485) | func testRequestHeaderHTTPVer(t *testing.T, s string, connectionClose bo... function TestResponseHeaderCopyTo (line 1500) | func TestResponseHeaderCopyTo(t *testing.T) { function TestRequestHeaderCopyTo (line 1540) | func TestRequestHeaderCopyTo(t *testing.T) { function TestResponseContentTypeNoDefaultNotEmpty (line 1585) | func TestResponseContentTypeNoDefaultNotEmpty(t *testing.T) { function TestRequestContentTypeDefaultNotEmpty (line 1600) | func TestRequestContentTypeDefaultNotEmpty(t *testing.T) { function TestRequestContentTypeNoDefault (line 1627) | func TestRequestContentTypeNoDefault(t *testing.T) { function TestResponseDateNoDefaultNotEmpty (line 1654) | func TestResponseDateNoDefaultNotEmpty(t *testing.T) { function TestRequestHeaderConnectionClose (line 1668) | func TestRequestHeaderConnectionClose(t *testing.T) { function TestRequestHeaderSetCookie (line 1702) | func TestRequestHeaderSetCookie(t *testing.T) { function TestResponseHeaderSetCookie (line 1721) | func TestResponseHeaderSetCookie(t *testing.T) { function TestResponseHeaderVisitAll (line 1753) | func TestResponseHeaderVisitAll(t *testing.T) { function TestRequestHeaderVisitAll (line 1820) | func TestRequestHeaderVisitAll(t *testing.T) { function TestRequestHeaderVisitAllInOrder (line 1878) | func TestRequestHeaderVisitAllInOrder(t *testing.T) { function TestResponseHeaderAddTrailerError (line 1921) | func TestResponseHeaderAddTrailerError(t *testing.T) { function TestRequestHeaderAddTrailerError (line 1936) | func TestRequestHeaderAddTrailerError(t *testing.T) { function TestTrailerSecurityVulnerabilityFix (line 1952) | func TestTrailerSecurityVulnerabilityFix(t *testing.T) { function TestTrailerParsingSecurityFix (line 2040) | func TestTrailerParsingSecurityFix(t *testing.T) { function TestResponseHeaderCookie (line 2120) | func TestResponseHeaderCookie(t *testing.T) { function equalCookie (line 2232) | func equalCookie(c1, c2 *Cookie) bool { function TestRequestHeaderCookie (line 2251) | func TestRequestHeaderCookie(t *testing.T) { function TestResponseHeaderCookieIssue4 (line 2307) | func TestResponseHeaderCookieIssue4(t *testing.T) { function TestRequestHeaderCookieIssue313 (line 2353) | func TestRequestHeaderCookieIssue313(t *testing.T) { function TestRequestHeaderMethod (line 2395) | func TestRequestHeaderMethod(t *testing.T) { function testRequestHeaderMethod (line 2409) | func testRequestHeaderMethod(t *testing.T, expectedMethod string) { function TestRequestHeaderSetGet (line 2429) | func TestRequestHeaderSetGet(t *testing.T) { function TestResponseHeaderSetGet (line 2496) | func TestResponseHeaderSetGet(t *testing.T) { function expectRequestHeaderGet (line 2556) | func expectRequestHeaderGet(t *testing.T, h *RequestHeader, key, expecte... function expectResponseHeaderGet (line 2562) | func expectResponseHeaderGet(t *testing.T, h *ResponseHeader, key, expec... function TestResponseHeaderConnectionClose (line 2568) | func TestResponseHeaderConnectionClose(t *testing.T) { function testResponseHeaderConnectionClose (line 2575) | func testResponseHeaderConnectionClose(t *testing.T, connectionClose boo... function TestRequestHeaderTooBig (line 2603) | func TestRequestHeaderTooBig(t *testing.T) { function TestResponseHeaderTooBig (line 2616) | func TestResponseHeaderTooBig(t *testing.T) { type bufioPeekReader (line 2629) | type bufioPeekReader struct method Read (line 2634) | func (r *bufioPeekReader) Read(b []byte) (int, error) { function TestRequestHeaderBufioPeek (line 2647) | func TestRequestHeaderBufioPeek(t *testing.T) { function TestResponseHeaderBufioPeek (line 2661) | func TestResponseHeaderBufioPeek(t *testing.T) { function getHeaders (line 2675) | func getHeaders(n int) string { function TestResponseHeaderReadSuccess (line 2683) | func TestResponseHeaderReadSuccess(t *testing.T) { function TestRequestHeaderReadSuccess (line 2833) | func TestRequestHeaderReadSuccess(t *testing.T) { function TestResponseHeaderReadError (line 2962) | func TestResponseHeaderReadError(t *testing.T) { function TestResponseHeaderReadErrorSecureLog (line 3004) | func TestResponseHeaderReadErrorSecureLog(t *testing.T) { function TestRequestHeaderReadError (line 3029) | func TestRequestHeaderReadError(t *testing.T) { function TestRequestHeaderReadSecuredError (line 3062) | func TestRequestHeaderReadSecuredError(t *testing.T) { function testResponseHeaderReadError (line 3080) | func testResponseHeaderReadError(t *testing.T, h *ResponseHeader, header... function testResponseHeaderReadSecuredError (line 3092) | func testResponseHeaderReadSecuredError(t *testing.T, h *ResponseHeader,... function testRequestHeaderReadError (line 3107) | func testRequestHeaderReadError(t *testing.T, h *RequestHeader, headers ... function testRequestHeaderReadSecuredError (line 3122) | func testRequestHeaderReadSecuredError(t *testing.T, h *RequestHeader, h... function testResponseHeaderReadSuccess (line 3137) | func testResponseHeaderReadSuccess(t *testing.T, h *ResponseHeader, head... function testRequestHeaderReadSuccess (line 3151) | func testRequestHeaderReadSuccess(t *testing.T, h *RequestHeader, header... function verifyResponseHeader (line 3165) | func verifyResponseHeader(t *testing.T, h *ResponseHeader, expectedStatu... function verifyResponseHeaderConnection (line 3182) | func verifyResponseHeaderConnection(t *testing.T, h *ResponseHeader, exp... function verifyRequestHeader (line 3188) | func verifyRequestHeader(t *testing.T, h *RequestHeader, expectedContent... type peeker (line 3208) | type peeker interface function verifyTrailer (line 3212) | func verifyTrailer(t *testing.T, h peeker, expectedTrailers map[string]s... function TestRequestHeader_PeekAll (line 3221) | func TestRequestHeader_PeekAll(t *testing.T) { function expectRequestHeaderAll (line 3251) | func expectRequestHeaderAll(t *testing.T, h *RequestHeader, key string, ... function TestResponseHeader_PeekAll (line 3260) | func TestResponseHeader_PeekAll(t *testing.T) { function expectResponseHeaderAll (line 3287) | func expectResponseHeaderAll(t *testing.T, h *ResponseHeader, key string... function TestRequestHeader_Keys (line 3296) | func TestRequestHeader_Keys(t *testing.T) { function TestResponseHeader_Keys (line 3316) | func TestResponseHeader_Keys(t *testing.T) { function TestAddVaryHeader (line 3336) | func TestAddVaryHeader(t *testing.T) { function TestAddVaryHeaderExisting (line 3358) | func TestAddVaryHeaderExisting(t *testing.T) { function TestAddVaryHeaderExistingAcceptEncoding (line 3381) | func TestAddVaryHeaderExistingAcceptEncoding(t *testing.T) { function TestRequestHeaderExtraWhitespace (line 3404) | func TestRequestHeaderExtraWhitespace(t *testing.T) { function TestRequestHeaderValidWhitespace (line 3429) | func TestRequestHeaderValidWhitespace(t *testing.T) { FILE: header_timing_test.go type benchReadBuf (line 19) | type benchReadBuf struct method Read (line 24) | func (r *benchReadBuf) Read(p []byte) (int, error) { function BenchmarkRequestHeaderRead (line 34) | func BenchmarkRequestHeaderRead(b *testing.B) { function BenchmarkRequestHeaderReadNetHttp (line 65) | func BenchmarkRequestHeaderReadNetHttp(b *testing.B) { function BenchmarkResponseHeaderRead (line 93) | func BenchmarkResponseHeaderRead(b *testing.B) { function BenchmarkRequestHeaderWrite (line 121) | func BenchmarkRequestHeaderWrite(b *testing.B) { function BenchmarkResponseHeaderWrite (line 138) | func BenchmarkResponseHeaderWrite(b *testing.B) { function BenchmarkRequestHeaderPeekBytesSpecialHeader (line 157) | func BenchmarkRequestHeaderPeekBytesSpecialHeader(b *testing.B) { function BenchmarkRequestHeaderPeekBytesNonSpecialHeader (line 171) | func BenchmarkRequestHeaderPeekBytesNonSpecialHeader(b *testing.B) { function BenchmarkResponseHeaderPeekBytesSpecialHeader (line 185) | func BenchmarkResponseHeaderPeekBytesSpecialHeader(b *testing.B) { function BenchmarkResponseHeaderPeekBytesNonSpecialHeader (line 199) | func BenchmarkResponseHeaderPeekBytesNonSpecialHeader(b *testing.B) { function BenchmarkNormalizeHeaderKeyCommonCase (line 212) | func BenchmarkNormalizeHeaderKeyCommonCase(b *testing.B) { function BenchmarkNormalizeHeaderKeyLowercase (line 217) | func BenchmarkNormalizeHeaderKeyLowercase(b *testing.B) { function BenchmarkNormalizeHeaderKeyUppercase (line 222) | func BenchmarkNormalizeHeaderKeyUppercase(b *testing.B) { function benchmarkNormalizeHeaderKey (line 227) | func benchmarkNormalizeHeaderKey(b *testing.B, src []byte) { function BenchmarkVisitHeaderParams (line 237) | func BenchmarkVisitHeaderParams(b *testing.B) { function BenchmarkRemoveNewLines (line 250) | func BenchmarkRemoveNewLines(b *testing.B) { function BenchmarkRequestHeaderIsGet (line 281) | func BenchmarkRequestHeaderIsGet(b *testing.B) { FILE: headers.go constant HeaderAccept (line 4) | HeaderAccept = "Accept" constant HeaderAcceptCH (line 5) | HeaderAcceptCH = "Accept-CH" constant HeaderAcceptCharset (line 6) | HeaderAcceptCharset = "Accept-Charset" constant HeaderAcceptCHLifetime (line 7) | HeaderAcceptCHLifetime = "Accept-CH-Lifetime" constant HeaderAcceptEncoding (line 8) | HeaderAcceptEncoding = "Accept-Encoding" constant HeaderAcceptLanguage (line 9) | HeaderAcceptLanguage = "Accept-Language" constant HeaderAcceptPatch (line 10) | HeaderAcceptPatch = "Accept-Patch" constant HeaderAcceptPushPolicy (line 11) | HeaderAcceptPushPolicy = "Accept-Push-Policy" constant HeaderAcceptRanges (line 12) | HeaderAcceptRanges = "Accept-Ranges" constant HeaderAcceptSignature (line 13) | HeaderAcceptSignature = "Accept-Signature" constant HeaderAccessControlAllowCredentials (line 14) | HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials" constant HeaderAccessControlAllowHeaders (line 15) | HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers" constant HeaderAccessControlAllowMethods (line 16) | HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods" constant HeaderAccessControlAllowOrigin (line 17) | HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin" constant HeaderAccessControlExposeHeaders (line 18) | HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers" constant HeaderAccessControlMaxAge (line 19) | HeaderAccessControlMaxAge = "Access-Control-Max-Age" constant HeaderAccessControlRequestHeaders (line 20) | HeaderAccessControlRequestHeaders = "Access-Control-Request-Headers" constant HeaderAccessControlRequestMethod (line 21) | HeaderAccessControlRequestMethod = "Access-Control-Request-Method" constant HeaderAge (line 22) | HeaderAge = "Age" constant HeaderAllow (line 23) | HeaderAllow = "Allow" constant HeaderAltSvc (line 24) | HeaderAltSvc = "Alt-Svc" constant HeaderAuthorization (line 25) | HeaderAuthorization = "Authorization" constant HeaderCacheControl (line 26) | HeaderCacheControl = "Cache-Control" constant HeaderClearSiteData (line 27) | HeaderClearSiteData = "Clear-Site-Data" constant HeaderConnection (line 28) | HeaderConnection = "Connection" constant HeaderContentDisposition (line 29) | HeaderContentDisposition = "Content-Disposition" constant HeaderContentDPR (line 30) | HeaderContentDPR = "Content-DPR" constant HeaderContentEncoding (line 31) | HeaderContentEncoding = "Content-Encoding" constant HeaderContentLanguage (line 32) | HeaderContentLanguage = "Content-Language" constant HeaderContentLength (line 33) | HeaderContentLength = "Content-Length" constant HeaderContentLocation (line 34) | HeaderContentLocation = "Content-Location" constant HeaderContentRange (line 35) | HeaderContentRange = "Content-Range" constant HeaderContentSecurityPolicy (line 36) | HeaderContentSecurityPolicy = "Content-Security-Policy" constant HeaderContentSecurityPolicyReportOnly (line 37) | HeaderContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-... constant HeaderContentType (line 38) | HeaderContentType = "Content-Type" constant HeaderCookie (line 39) | HeaderCookie = "Cookie" constant HeaderCrossOriginResourcePolicy (line 40) | HeaderCrossOriginResourcePolicy = "Cross-Origin-Resource-Policy" constant HeaderDate (line 41) | HeaderDate = "Date" constant HeaderDNT (line 42) | HeaderDNT = "DNT" constant HeaderDPR (line 43) | HeaderDPR = "DPR" constant HeaderEarlyData (line 44) | HeaderEarlyData = "Early-Data" constant HeaderETag (line 45) | HeaderETag = "ETag" constant HeaderExpect (line 46) | HeaderExpect = "Expect" constant HeaderExpectCT (line 47) | HeaderExpectCT = "Expect-CT" constant HeaderExpires (line 48) | HeaderExpires = "Expires" constant HeaderFeaturePolicy (line 49) | HeaderFeaturePolicy = "Feature-Policy" constant HeaderForwarded (line 50) | HeaderForwarded = "Forwarded" constant HeaderFrom (line 51) | HeaderFrom = "From" constant HeaderHost (line 52) | HeaderHost = "Host" constant HeaderIfMatch (line 53) | HeaderIfMatch = "If-Match" constant HeaderIfModifiedSince (line 54) | HeaderIfModifiedSince = "If-Modified-Since" constant HeaderIfNoneMatch (line 55) | HeaderIfNoneMatch = "If-None-Match" constant HeaderIfRange (line 56) | HeaderIfRange = "If-Range" constant HeaderIfUnmodifiedSince (line 57) | HeaderIfUnmodifiedSince = "If-Unmodified-Since" constant HeaderIndex (line 58) | HeaderIndex = "Index" constant HeaderKeepAlive (line 59) | HeaderKeepAlive = "Keep-Alive" constant HeaderLargeAllocation (line 60) | HeaderLargeAllocation = "Large-Allocation" constant HeaderLastEventID (line 61) | HeaderLastEventID = "Last-Event-ID" constant HeaderLastModified (line 62) | HeaderLastModified = "Last-Modified" constant HeaderLink (line 63) | HeaderLink = "Link" constant HeaderLocation (line 64) | HeaderLocation = "Location" constant HeaderMaxForwards (line 65) | HeaderMaxForwards = "Max-Forwards" constant HeaderNEL (line 66) | HeaderNEL = "NEL" constant HeaderOrigin (line 67) | HeaderOrigin = "Origin" constant HeaderPingFrom (line 68) | HeaderPingFrom = "Ping-From" constant HeaderPingTo (line 69) | HeaderPingTo = "Ping-To" constant HeaderPragma (line 70) | HeaderPragma = "Pragma" constant HeaderProxyAuthenticate (line 71) | HeaderProxyAuthenticate = "Proxy-Authenticate" constant HeaderProxyAuthorization (line 72) | HeaderProxyAuthorization = "Proxy-Authorization" constant HeaderProxyConnection (line 73) | HeaderProxyConnection = "Proxy-Connection" constant HeaderPublicKeyPins (line 74) | HeaderPublicKeyPins = "Public-Key-Pins" constant HeaderPublicKeyPinsReportOnly (line 75) | HeaderPublicKeyPinsReportOnly = "Public-Key-Pins-Report-Only" constant HeaderPushPolicy (line 76) | HeaderPushPolicy = "Push-Policy" constant HeaderRange (line 77) | HeaderRange = "Range" constant HeaderReferer (line 78) | HeaderReferer = "Referer" constant HeaderReferrerPolicy (line 79) | HeaderReferrerPolicy = "Referrer-Policy" constant HeaderReportTo (line 80) | HeaderReportTo = "Report-To" constant HeaderRetryAfter (line 81) | HeaderRetryAfter = "Retry-After" constant HeaderSaveData (line 82) | HeaderSaveData = "Save-Data" constant HeaderSecWebSocketAccept (line 83) | HeaderSecWebSocketAccept = "Sec-WebSocket-Accept" constant HeaderSecWebSocketExtensions (line 84) | HeaderSecWebSocketExtensions = "Sec-WebSocket-Extensions" constant HeaderSecWebSocketKey (line 85) | HeaderSecWebSocketKey = "Sec-WebSocket-Key" constant HeaderSecWebSocketProtocol (line 86) | HeaderSecWebSocketProtocol = "Sec-WebSocket-Protocol" constant HeaderSecWebSocketVersion (line 87) | HeaderSecWebSocketVersion = "Sec-WebSocket-Version" constant HeaderServer (line 88) | HeaderServer = "Server" constant HeaderServerTiming (line 89) | HeaderServerTiming = "Server-Timing" constant HeaderSetCookie (line 90) | HeaderSetCookie = "Set-Cookie" constant HeaderSignature (line 91) | HeaderSignature = "Signature" constant HeaderSignedHeaders (line 92) | HeaderSignedHeaders = "Signed-Headers" constant HeaderSourceMap (line 93) | HeaderSourceMap = "SourceMap" constant HeaderStrictTransportSecurity (line 94) | HeaderStrictTransportSecurity = "Strict-Transport-Security" constant HeaderTE (line 95) | HeaderTE = "TE" constant HeaderTimingAllowOrigin (line 96) | HeaderTimingAllowOrigin = "Timing-Allow-Origin" constant HeaderTk (line 97) | HeaderTk = "Tk" constant HeaderTrailer (line 98) | HeaderTrailer = "Trailer" constant HeaderTransferEncoding (line 99) | HeaderTransferEncoding = "Transfer-Encoding" constant HeaderUpgrade (line 100) | HeaderUpgrade = "Upgrade" constant HeaderUpgradeInsecureRequests (line 101) | HeaderUpgradeInsecureRequests = "Upgrade-Insecure-Requests" constant HeaderUserAgent (line 102) | HeaderUserAgent = "User-Agent" constant HeaderVary (line 103) | HeaderVary = "Vary" constant HeaderVia (line 104) | HeaderVia = "Via" constant HeaderViewportWidth (line 105) | HeaderViewportWidth = "Viewport-Width" constant HeaderWarning (line 106) | HeaderWarning = "Warning" constant HeaderWidth (line 107) | HeaderWidth = "Width" constant HeaderWWWAuthenticate (line 108) | HeaderWWWAuthenticate = "WWW-Authenticate" constant HeaderXContentTypeOptions (line 109) | HeaderXContentTypeOptions = "X-Content-Type-Options" constant HeaderXDNSPrefetchControl (line 110) | HeaderXDNSPrefetchControl = "X-DNS-Prefetch-Control" constant HeaderXDownloadOptions (line 111) | HeaderXDownloadOptions = "X-Download-Options" constant HeaderXForwardedFor (line 112) | HeaderXForwardedFor = "X-Forwarded-For" constant HeaderXForwardedHost (line 113) | HeaderXForwardedHost = "X-Forwarded-Host" constant HeaderXForwardedProto (line 114) | HeaderXForwardedProto = "X-Forwarded-Proto" constant HeaderXFrameOptions (line 115) | HeaderXFrameOptions = "X-Frame-Options" constant HeaderXPermittedCrossDomainPolicies (line 116) | HeaderXPermittedCrossDomainPolicies = "X-Permitted-Cross-Domain-Policies" constant HeaderXPingback (line 117) | HeaderXPingback = "X-Pingback" constant HeaderXPoweredBy (line 118) | HeaderXPoweredBy = "X-Powered-By" constant HeaderXRequestedWith (line 119) | HeaderXRequestedWith = "X-Requested-With" constant HeaderXRobotsTag (line 120) | HeaderXRobotsTag = "X-Robots-Tag" constant HeaderXUACompatible (line 121) | HeaderXUACompatible = "X-UA-Compatible" constant HeaderXXSSProtection (line 122) | HeaderXXSSProtection = "X-XSS-Protection" FILE: headerscanner.go type headerScanner (line 9) | type headerScanner struct method next (line 21) | func (s *headerScanner) next() bool { method readLine (line 76) | func (s *headerScanner) readLine() (line []byte) { method readContinuedLineSlice (line 107) | func (s *headerScanner) readContinuedLineSlice() ([]byte, error) { method skipSpace (line 138) | func (s *headerScanner) skipSpace() bool { function isASCIILetter (line 151) | func isASCIILetter(b byte) bool { function trim (line 158) | func trim(s []byte) []byte { FILE: http.go function SetBodySizePoolLimit (line 27) | func SetBodySizePoolLimit(reqBodyLimit, respBodyLimit int) { type Request (line 38) | type Request struct method SetHost (line 132) | func (req *Request) SetHost(host string) { method SetHostBytes (line 137) | func (req *Request) SetHostBytes(host []byte) { method Host (line 142) | func (req *Request) Host() []byte { method SetRequestURI (line 147) | func (req *Request) SetRequestURI(requestURI string) { method SetRequestURIBytes (line 154) | func (req *Request) SetRequestURIBytes(requestURI []byte) { method RequestURI (line 161) | func (req *Request) RequestURI() []byte { method ConnectionClose (line 190) | func (req *Request) ConnectionClose() bool { method SetConnectionClose (line 195) | func (req *Request) SetConnectionClose() { method GetTimeOut (line 205) | func (req *Request) GetTimeOut() time.Duration { method SetBodyStream (line 248) | func (req *Request) SetBodyStream(bodyStream io.Reader, bodySize int) { method IsBodyStream (line 272) | func (req *Request) IsBodyStream() bool { method SetBodyStreamWriter (line 293) | func (req *Request) SetBodyStreamWriter(sw StreamWriter) { method BodyStream (line 326) | func (req *Request) BodyStream() io.Reader { method CloseBodyStream (line 330) | func (req *Request) CloseBodyStream() error { method BodyWriter (line 371) | func (req *Request) BodyWriter() io.Writer { method bodyBytes (line 449) | func (req *Request) bodyBytes() []byte { method bodyBuffer (line 476) | func (req *Request) bodyBuffer() *bytebufferpool.ByteBuffer { method BodyGunzip (line 494) | func (req *Request) BodyGunzip() ([]byte, error) { method BodyGunzipWithLimit (line 502) | func (req *Request) BodyGunzipWithLimit(maxBodySize int) ([]byte, erro... method BodyUnbrotli (line 537) | func (req *Request) BodyUnbrotli() ([]byte, error) { method BodyUnbrotliWithLimit (line 545) | func (req *Request) BodyUnbrotliWithLimit(maxBodySize int) ([]byte, er... method BodyInflate (line 580) | func (req *Request) BodyInflate() ([]byte, error) { method BodyInflateWithLimit (line 588) | func (req *Request) BodyInflateWithLimit(maxBodySize int) ([]byte, err... method BodyUnzstd (line 613) | func (req *Request) BodyUnzstd() ([]byte, error) { method BodyUnzstdWithLimit (line 621) | func (req *Request) BodyUnzstdWithLimit(maxBodySize int) ([]byte, erro... method BodyUncompressed (line 663) | func (req *Request) BodyUncompressed() ([]byte, error) { method BodyUncompressedWithLimit (line 671) | func (req *Request) BodyUncompressedWithLimit(maxBodySize int) ([]byte... method BodyWriteTo (line 720) | func (req *Request) BodyWriteTo(w io.Writer) error { method SetBodyRaw (line 801) | func (req *Request) SetBodyRaw(body []byte) { method ReleaseBody (line 831) | func (req *Request) ReleaseBody(size int) { method SwapBody (line 872) | func (req *Request) SwapBody(body []byte) []byte { method Body (line 897) | func (req *Request) Body() []byte { method AppendBody (line 913) | func (req *Request) AppendBody(p []byte) { method AppendBodyString (line 920) | func (req *Request) AppendBodyString(s string) { method SetBody (line 929) | func (req *Request) SetBody(body []byte) { method SetBodyString (line 936) | func (req *Request) SetBodyString(body string) { method ResetBody (line 943) | func (req *Request) ResetBody() { method CopyTo (line 958) | func (req *Request) CopyTo(dst *Request) { method copyToSkipBody (line 973) | func (req *Request) copyToSkipBody(dst *Request) { method URI (line 1036) | func (req *Request) URI() *URI { method SetURI (line 1045) | func (req *Request) SetURI(newURI *URI) { method parseURI (line 1057) | func (req *Request) parseURI() error { method PostArgs (line 1068) | func (req *Request) PostArgs() *Args { method parsePostArgs (line 1073) | func (req *Request) parsePostArgs() { method MultipartForm (line 1099) | func (req *Request) MultipartForm() (*multipart.Form, error) { method MultipartFormWithLimit (line 1113) | func (req *Request) MultipartFormWithLimit(maxBodySize int) (*multipar... method Reset (line 1255) | func (req *Request) Reset() { method resetSkipHeader (line 1267) | func (req *Request) resetSkipHeader() { method RemoveMultipartFormFiles (line 1279) | func (req *Request) RemoveMultipartFormFiles() { method Read (line 1322) | func (req *Request) Read(r *bufio.Reader) error { method ReadLimitBody (line 1350) | func (req *Request) ReadLimitBody(r *bufio.Reader, maxBodySize int) er... method readLimitBody (line 1359) | func (req *Request) readLimitBody(r *bufio.Reader, maxBodySize int, ge... method readBodyStream (line 1377) | func (req *Request) readBodyStream(r *bufio.Reader, maxBodySize int, g... method MayContinue (line 1405) | func (req *Request) MayContinue() bool { method ContinueReadBody (line 1416) | func (req *Request) ContinueReadBody(r *bufio.Reader, maxBodySize int,... method ReadBody (line 1468) | func (req *Request) ReadBody(r *bufio.Reader, contentLength, maxBodySi... method ContinueReadBodyStream (line 1499) | func (req *Request) ContinueReadBodyStream(r *bufio.Reader, maxBodySiz... method WriteTo (line 1645) | func (req *Request) WriteTo(w io.Writer) (int64, error) { method onlyMultipartForm (line 1723) | func (req *Request) onlyMultipartForm() bool { method Write (line 1732) | func (req *Request) Write(w *bufio.Writer) error { method writeBodyStream (line 2144) | func (req *Request) writeBodyStream(w *bufio.Writer) error { method closeBodyStream (line 2238) | func (req *Request) closeBodyStream() error { method String (line 2276) | func (req *Request) String() string { method SetUserValue (line 2300) | func (req *Request) SetUserValue(key, value any) { method SetUserValueBytes (line 2313) | func (req *Request) SetUserValueBytes(key []byte, value any) { method UserValue (line 2318) | func (req *Request) UserValue(key any) any { method UserValueBytes (line 2324) | func (req *Request) UserValueBytes(key []byte) any { method VisitUserValues (line 2332) | func (req *Request) VisitUserValues(visitor func([]byte, any)) { method VisitUserValuesAll (line 2345) | func (req *Request) VisitUserValuesAll(visitor func(any, any)) { method ResetUserValues (line 2353) | func (req *Request) ResetUserValues() { method RemoveUserValue (line 2358) | func (req *Request) RemoveUserValue(key any) { method RemoveUserValueBytes (line 2363) | func (req *Request) RemoveUserValueBytes(key []byte) { method SetTimeout (line 2806) | func (req *Request) SetTimeout(t time.Duration) { type Response (line 93) | type Response struct method StatusCode (line 170) | func (resp *Response) StatusCode() int { method SetStatusCode (line 175) | func (resp *Response) SetStatusCode(statusCode int) { method ConnectionClose (line 180) | func (resp *Response) ConnectionClose() bool { method SetConnectionClose (line 185) | func (resp *Response) SetConnectionClose() { method SendFile (line 214) | func (resp *Response) SendFile(path string) error { method SetBodyStream (line 265) | func (resp *Response) SetBodyStream(bodyStream io.Reader, bodySize int) { method IsBodyStream (line 277) | func (resp *Response) IsBodyStream() bool { method SetBodyStreamWriter (line 308) | func (resp *Response) SetBodyStreamWriter(sw StreamWriter) { method BodyWriter (line 318) | func (resp *Response) BodyWriter() io.Writer { method BodyStream (line 337) | func (resp *Response) BodyStream() io.Reader { method CloseBodyStream (line 341) | func (resp *Response) CloseBodyStream() error { method ParseNetConn (line 404) | func (resp *Response) ParseNetConn(conn net.Conn) { method RemoteAddr (line 411) | func (resp *Response) RemoteAddr() net.Addr { method LocalAddr (line 417) | func (resp *Response) LocalAddr() net.Addr { method Body (line 426) | func (resp *Response) Body() []byte { method bodyBytes (line 439) | func (resp *Response) bodyBytes() []byte { method bodyBuffer (line 468) | func (resp *Response) bodyBuffer() *bytebufferpool.ByteBuffer { method BodyGunzip (line 511) | func (resp *Response) BodyGunzip() ([]byte, error) { method BodyGunzipWithLimit (line 519) | func (resp *Response) BodyGunzipWithLimit(maxBodySize int) ([]byte, er... method BodyUnbrotli (line 554) | func (resp *Response) BodyUnbrotli() ([]byte, error) { method BodyUnbrotliWithLimit (line 562) | func (resp *Response) BodyUnbrotliWithLimit(maxBodySize int) ([]byte, ... method BodyInflate (line 597) | func (resp *Response) BodyInflate() ([]byte, error) { method BodyInflateWithLimit (line 605) | func (resp *Response) BodyInflateWithLimit(maxBodySize int) ([]byte, e... method BodyUnzstd (line 625) | func (resp *Response) BodyUnzstd() ([]byte, error) { method BodyUnzstdWithLimit (line 633) | func (resp *Response) BodyUnzstdWithLimit(maxBodySize int) ([]byte, er... method BodyUncompressed (line 694) | func (resp *Response) BodyUncompressed() ([]byte, error) { method BodyUncompressedWithLimit (line 702) | func (resp *Response) BodyUncompressedWithLimit(maxBodySize int) ([]by... method BodyWriteTo (line 734) | func (resp *Response) BodyWriteTo(w io.Writer) error { method AppendBody (line 747) | func (resp *Response) AppendBody(p []byte) { method AppendBodyString (line 753) | func (resp *Response) AppendBodyString(s string) { method SetBody (line 761) | func (resp *Response) SetBody(body []byte) { method SetBodyString (line 769) | func (resp *Response) SetBodyString(body string) { method ResetBody (line 777) | func (resp *Response) ResetBody() { method SetBodyRaw (line 793) | func (resp *Response) SetBodyRaw(body []byte) { method ReleaseBody (line 813) | func (resp *Response) ReleaseBody(size int) { method SwapBody (line 847) | func (resp *Response) SwapBody(body []byte) []byte { method CopyTo (line 992) | func (resp *Response) CopyTo(dst *Response) { method copyToSkipBody (line 1007) | func (resp *Response) copyToSkipBody(dst *Response) { method Reset (line 1290) | func (resp *Response) Reset() { method resetSkipHeader (line 1303) | func (resp *Response) resetSkipHeader() { method Read (line 1559) | func (resp *Response) Read(r *bufio.Reader) error { method ReadLimitBody (line 1572) | func (resp *Response) ReadLimitBody(r *bufio.Reader, maxBodySize int) ... method ReadBody (line 1606) | func (resp *Response) ReadBody(r *bufio.Reader, maxBodySize int) (err ... method mustSkipBody (line 1638) | func (resp *Response) mustSkipBody() bool { method WriteTo (line 1650) | func (resp *Response) WriteTo(w io.Writer) (int64, error) { method WriteGzip (line 1808) | func (resp *Response) WriteGzip(w *bufio.Writer) error { method WriteGzipLevel (line 1826) | func (resp *Response) WriteGzipLevel(w *bufio.Writer, level int) error { method WriteDeflate (line 1837) | func (resp *Response) WriteDeflate(w *bufio.Writer) error { method WriteDeflateLevel (line 1855) | func (resp *Response) WriteDeflateLevel(w *bufio.Writer, level int) er... method brotliBody (line 1860) | func (resp *Response) brotliBody(level int) { method gzipBody (line 1918) | func (resp *Response) gzipBody(level int) { method deflateBody (line 1976) | func (resp *Response) deflateBody(level int) { method zstdBody (line 2034) | func (resp *Response) zstdBody(level int) { method Write (line 2121) | func (resp *Response) Write(w *bufio.Writer) error { method writeBodyStream (line 2186) | func (resp *Response) writeBodyStream(w *bufio.Writer, sendBody bool) ... method closeBodyStream (line 2253) | func (resp *Response) closeBodyStream(wErr error) error { method String (line 2285) | func (resp *Response) String() string { type ReadCloserWithError (line 345) | type ReadCloserWithError interface type closeReader (line 350) | type closeReader struct method CloseWithError (line 363) | func (c *closeReader) CloseWithError(err error) error { function newCloseReaderWithError (line 356) | func newCloseReaderWithError(r io.Reader, closeFunc func(err error) erro... type responseBodyWriter (line 376) | type responseBodyWriter struct method Write (line 380) | func (w *responseBodyWriter) Write(p []byte) (int, error) { method WriteString (line 385) | func (w *responseBodyWriter) WriteString(s string) (int, error) { type requestBodyWriter (line 390) | type requestBodyWriter struct method Write (line 394) | func (w *requestBodyWriter) Write(p []byte) (int, error) { method WriteString (line 399) | func (w *requestBodyWriter) WriteString(s string) (int, error) { function gunzipData (line 523) | func gunzipData(p []byte, maxBodySize int) ([]byte, error) { function unBrotliData (line 566) | func unBrotliData(p []byte, maxBodySize int) ([]byte, error) { method RequestBodyStream (line 609) | func (ctx *RequestCtx) RequestBodyStream() io.Reader { function unzstdData (line 637) | func unzstdData(p []byte, maxBodySize int) ([]byte, error) { function inflateData (line 646) | func inflateData(p []byte, maxBodySize int) ([]byte, error) { function swapRequestBody (line 1015) | func swapRequestBody(a, b *Request) { function swapResponseBody (line 1029) | func swapResponseBody(a, b *Response) { function marshalMultipartForm (line 1178) | func marshalMultipartForm(f *multipart.Form, boundary string) ([]byte, e... function WriteMultipartForm (line 1188) | func WriteMultipartForm(w io.Writer, f *multipart.Form, boundary string)... function readMultipartForm (line 1237) | func readMultipartForm(r io.Reader, boundary string, size, maxInMemoryFi... constant defaultMaxInMemoryFileSize (line 1326) | defaultMaxInMemoryFileSize = 16 * 1024 * 1024 function writeBufio (line 1654) | func writeBufio(hw httpWriter, w io.Writer) (int64, error) { type statsWriter (line 1670) | type statsWriter struct method Write (line 1675) | func (w *statsWriter) Write(p []byte) (int, error) { method WriteString (line 1681) | func (w *statsWriter) WriteString(s string) (int, error) { function acquireStatsWriter (line 1687) | func acquireStatsWriter(w io.Writer) *statsWriter { function releaseStatsWriter (line 1699) | func releaseStatsWriter(sw *statsWriter) { function acquireBufioWriter (line 1707) | func acquireBufioWriter(w io.Writer) *bufio.Writer { function releaseBufioWriter (line 1717) | func releaseBufioWriter(bw *bufio.Writer) { constant minCompressLen (line 2086) | minCompressLen = 200 type writeFlusher (line 2088) | type writeFlusher interface type flushWriter (line 2093) | type flushWriter struct method Write (line 2098) | func (w *flushWriter) Write(p []byte) (int, error) { method WriteString (line 2112) | func (w *flushWriter) WriteString(s string) (int, error) { type ErrBodyStreamWritePanic (line 2182) | type ErrBodyStreamWritePanic struct function getHTTPString (line 2367) | func getHTTPString(hw httpWriter) string { type httpWriter (line 2382) | type httpWriter interface function writeBodyChunked (line 2386) | func writeBodyChunked(w *bufio.Writer, r io.Reader) error { function limitedReaderSize (line 2415) | func limitedReaderSize(r io.Reader) int64 { function writeBodyFixedSize (line 2423) | func writeBodyFixedSize(w *bufio.Writer, r io.Reader, size int64) error { function copyZeroAlloc (line 2477) | func copyZeroAlloc(w io.Writer, r io.Reader) (int64, error) { function copyBuffer (line 2521) | func copyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64... function writeChunk (line 2558) | func writeChunk(w *bufio.Writer, b []byte) error { function copyZeroAllocWithLimit (line 2582) | func copyZeroAllocWithLimit(w io.Writer, r io.Reader, maxBodySize int) (... function readBody (line 2601) | func readBody(r *bufio.Reader, contentLength, maxBodySize int, dst []byt... function readBodyWithStreaming (line 2610) | func readBodyWithStreaming(r *bufio.Reader, contentLength, maxBodySize i... function readBodyIdentity (line 2637) | func readBodyIdentity(r *bufio.Reader, maxBodySize int, dst []byte) ([]b... function appendBodyFixedSize (line 2671) | func appendBodyFixedSize(r *bufio.Reader, dst []byte, n int) ([]byte, er... type ErrBrokenChunk (line 2705) | type ErrBrokenChunk struct function readBodyChunked (line 2709) | func readBodyChunked(r *bufio.Reader, maxBodySize int, dst []byte) ([]by... function parseChunkSize (line 2741) | func parseChunkSize(r *bufio.Reader) (int, error) { function readCrLf (line 2779) | func readCrLf(r *bufio.Reader) error { FILE: http_test.go function TestInvalidTrailers (line 21) | func TestInvalidTrailers(t *testing.T) { function TestResponseEmptyTransferEncoding (line 35) | func TestResponseEmptyTransferEncoding(t *testing.T) { function TestFragmentInURIRequest (line 52) | func TestFragmentInURIRequest(t *testing.T) { function TestIssue875 (line 68) | func TestIssue875(t *testing.T) { function TestRequestCopyTo (line 117) | func TestRequestCopyTo(t *testing.T) { function TestResponseCopyTo (line 138) | func TestResponseCopyTo(t *testing.T) { function testRequestCopyTo (line 154) | func testRequestCopyTo(t *testing.T, src *Request) { function testResponseCopyTo (line 164) | func testResponseCopyTo(t *testing.T, src *Response) { function TestRequestBodyStreamWithTrailer (line 173) | func TestRequestBodyStreamWithTrailer(t *testing.T) { function testRequestBodyStreamWithTrailer (line 183) | func testRequestBodyStreamWithTrailer(t *testing.T, body []byte, disable... function TestResponseBodyStreamWithTrailer (line 232) | func TestResponseBodyStreamWithTrailer(t *testing.T) { function testResponseBodyStreamWithTrailer (line 242) | func testResponseBodyStreamWithTrailer(t *testing.T, body []byte, disabl... function TestResponseBodyStreamDeflate (line 289) | func TestResponseBodyStreamDeflate(t *testing.T) { function TestResponseBodyStreamGzip (line 302) | func TestResponseBodyStreamGzip(t *testing.T) { function testResponseBodyStreamDeflate (line 315) | func testResponseBodyStreamDeflate(t *testing.T, body []byte, bodySize i... function testResponseBodyStreamGzip (line 349) | func testResponseBodyStreamGzip(t *testing.T, body []byte, bodySize int) { function TestResponseWriteGzipNilBody (line 383) | func TestResponseWriteGzipNilBody(t *testing.T) { function TestResponseWriteDeflateNilBody (line 397) | func TestResponseWriteDeflateNilBody(t *testing.T) { function TestResponseBodyUncompressed (line 411) | func TestResponseBodyUncompressed(t *testing.T) { function TestBodyDecodeWithLimitTooLarge (line 451) | func TestBodyDecodeWithLimitTooLarge(t *testing.T) { function TestRequestMultipartFormWithLimitGzip (line 515) | func TestRequestMultipartFormWithLimitGzip(t *testing.T) { function TestResponseSwapBodySerial (line 576) | func TestResponseSwapBodySerial(t *testing.T) { function TestResponseSwapBodyConcurrent (line 582) | func TestResponseSwapBodyConcurrent(t *testing.T) { function testResponseSwapBody (line 602) | func testResponseSwapBody(t *testing.T) { function TestRequestSwapBodySerial (line 630) | func TestRequestSwapBodySerial(t *testing.T) { function TestRequestSwapBodyConcurrent (line 636) | func TestRequestSwapBodyConcurrent(t *testing.T) { function testRequestSwapBody (line 656) | func testRequestSwapBody(t *testing.T) { function TestRequestHostFromRequestURI (line 684) | func TestRequestHostFromRequestURI(t *testing.T) { function TestRequestHostFromHeader (line 697) | func TestRequestHostFromHeader(t *testing.T) { function TestRequestContentTypeWithCharsetIssue100 (line 709) | func TestRequestContentTypeWithCharsetIssue100(t *testing.T) { function TestRequestReadMultipartFormWithFile (line 741) | func TestRequestReadMultipartFormWithFile(t *testing.T) { function TestRequestSetURI (line 828) | func TestRequestSetURI(t *testing.T) { function TestRequestRequestURI (line 853) | func TestRequestRequestURI(t *testing.T) { function TestRequestUpdateURI (line 883) | func TestRequestUpdateURI(t *testing.T) { function TestUseHostHeader (line 907) | func TestUseHostHeader(t *testing.T) { function TestUseHostHeader2 (line 932) | func TestUseHostHeader2(t *testing.T) { function TestUseHostHeaderAfterRelease (line 966) | func TestUseHostHeaderAfterRelease(t *testing.T) { function TestRequestBodyStreamMultipleBodyCalls (line 979) | func TestRequestBodyStreamMultipleBodyCalls(t *testing.T) { function TestResponseBodyStreamMultipleBodyCalls (line 1000) | func TestResponseBodyStreamMultipleBodyCalls(t *testing.T) { function TestRequestBodyWriteToPlain (line 1021) | func TestRequestBodyWriteToPlain(t *testing.T) { function TestResponseBodyWriteToPlain (line 1032) | func TestResponseBodyWriteToPlain(t *testing.T) { function TestResponseBodyWriteToStream (line 1043) | func TestResponseBodyWriteToStream(t *testing.T) { function TestRequestBodyWriteToMultipart (line 1061) | func TestRequestBodyWriteToMultipart(t *testing.T) { type bodyWriterTo (line 1077) | type bodyWriterTo interface function testBodyWriteTo (line 1082) | func testBodyWriteTo(t *testing.T, bw bodyWriterTo, expectedS string, is... function TestRequestReadEOF (line 1105) | func TestRequestReadEOF(t *testing.T) { function TestResponseReadEOF (line 1130) | func TestResponseReadEOF(t *testing.T) { function TestRequestReadNoBody (line 1155) | func TestRequestReadNoBody(t *testing.T) { function TestRequestReadNoBodyStreaming (line 1172) | func TestRequestReadNoBodyStreaming(t *testing.T) { function TestResponseWriteTo (line 1191) | func TestResponseWriteTo(t *testing.T) { function TestRequestWriteTo (line 1212) | func TestRequestWriteTo(t *testing.T) { function TestResponseSkipBody (line 1233) | func TestResponseSkipBody(t *testing.T) { function TestRequestNoContentLength (line 1300) | func TestRequestNoContentLength(t *testing.T) { function TestRequestReadGzippedBody (line 1321) | func TestRequestReadGzippedBody(t *testing.T) { function TestRequestReadPostNoBody (line 1354) | func TestRequestReadPostNoBody(t *testing.T) { function TestRequestContinueReadBody (line 1387) | func TestRequestContinueReadBody(t *testing.T) { function TestRequestContinueReadBodyDisablePrereadMultipartForm (line 1418) | func TestRequestContinueReadBodyDisablePrereadMultipartForm(t *testing.T) { function TestRequestMayContinue (line 1459) | func TestRequestMayContinue(t *testing.T) { function TestResponseGzipStream (line 1478) | func TestResponseGzipStream(t *testing.T) { function TestResponseDeflateStream (line 1503) | func TestResponseDeflateStream(t *testing.T) { function TestResponseDeflate (line 1526) | func TestResponseDeflate(t *testing.T) { function TestResponseGzip (line 1534) | func TestResponseGzip(t *testing.T) { function testResponseDeflate (line 1542) | func testResponseDeflate(t *testing.T, s string) { function testResponseDeflateExt (line 1554) | func testResponseDeflateExt(t *testing.T, r *Response, s string) { function testResponseGzip (line 1595) | func testResponseGzip(t *testing.T, s string) { function testResponseGzipExt (line 1607) | func testResponseGzipExt(t *testing.T, r *Response, s string) { function isCompressibleResponse (line 1648) | func isCompressibleResponse(r *Response, s string) bool { function TestRequestMultipartForm (line 1656) | func TestRequestMultipartForm(t *testing.T) { function testRequestMultipartForm (line 1696) | func testRequestMultipartForm(t *testing.T, boundary string, formData []... function TestResponseReadLimitBody (line 1741) | func TestResponseReadLimitBody(t *testing.T) { function TestRequestReadLimitBody (line 1761) | func TestRequestReadLimitBody(t *testing.T) { function testResponseReadLimitBodyError (line 1776) | func testResponseReadLimitBodyError(t *testing.T, s string, maxBodySize ... function testResponseReadLimitBodySuccess (line 1789) | func testResponseReadLimitBodySuccess(t *testing.T, s string, maxBodySiz... function testRequestReadLimitBodyError (line 1800) | func testRequestReadLimitBodyError(t *testing.T, s string, maxBodySize i... function testRequestReadLimitBodySuccess (line 1813) | func testRequestReadLimitBodySuccess(t *testing.T, s string, maxBodySize... function TestRequestString (line 1824) | func TestRequestString(t *testing.T) { function TestRequestBodyWriter (line 1836) | func TestRequestBodyWriter(t *testing.T) { function TestResponseBodyWriter (line 1847) | func TestResponseBodyWriter(t *testing.T) { function TestRequestWriteRequestURINoHost (line 1860) | func TestRequestWriteRequestURINoHost(t *testing.T) { function TestSetRequestBodyStreamFixedSize (line 1896) | func TestSetRequestBodyStreamFixedSize(t *testing.T) { function TestSetResponseBodyStreamFixedSize (line 1904) | func TestSetResponseBodyStreamFixedSize(t *testing.T) { function TestSetRequestBodyStreamChunked (line 1912) | func TestSetRequestBodyStreamChunked(t *testing.T) { function TestSetResponseBodyStreamChunked (line 1924) | func TestSetResponseBodyStreamChunked(t *testing.T) { function testSetRequestBodyStream (line 1936) | func testSetRequestBodyStream(t *testing.T, body string) { function testSetRequestBodyStreamChunked (line 1969) | func testSetRequestBodyStreamChunked(t *testing.T, body string, trailer ... function testSetResponseBodyStream (line 2016) | func testSetResponseBodyStream(t *testing.T, body string) { function testSetResponseBodyStreamChunked (line 2046) | func testSetResponseBodyStreamChunked(t *testing.T, body string, trailer... function TestRequestReadChunked (line 2090) | func TestRequestReadChunked(t *testing.T) { function TestRequestChunkedEmpty (line 2110) | func TestRequestChunkedEmpty(t *testing.T) { function TestRequestChunkedWhitespace (line 2130) | func TestRequestChunkedWhitespace(t *testing.T) { function TestResponseReadWithoutBody (line 2148) | func TestResponseReadWithoutBody(t *testing.T) { function testResponseReadWithoutBody (line 2170) | func testResponseReadWithoutBody(t *testing.T, resp *Response, s string,... function TestRequestSuccess (line 2193) | func TestRequestSuccess(t *testing.T) { function TestResponseSuccess (line 2218) | func TestResponseSuccess(t *testing.T) { function testResponseSuccess (line 2242) | func testResponseSuccess(t *testing.T, statusCode int, contentType, serv... function TestRequestWriteError (line 2283) | func TestRequestWriteError(t *testing.T) { function testRequestWriteError (line 2290) | func testRequestWriteError(t *testing.T, method, requestURI, host, userA... function testRequestSuccess (line 2307) | func testRequestSuccess(t *testing.T, method, requestURI, host, userAgen... function TestResponseReadSuccess (line 2360) | func TestResponseReadSuccess(t *testing.T) { function TestResponseReadError (line 2416) | func TestResponseReadError(t *testing.T) { function testResponseReadError (line 2439) | func testResponseReadError(t *testing.T, resp *Response, response string) { function testResponseReadSuccess (line 2451) | func testResponseReadSuccess(t *testing.T, resp *Response, response stri... function TestReadBodyFixedSize (line 2468) | func TestReadBodyFixedSize(t *testing.T) { function TestReadBodyChunked (line 2487) | func TestReadBodyChunked(t *testing.T) { function TestRequestURITLS (line 2506) | func TestRequestURITLS(t *testing.T) { function TestRequestURI (line 2530) | func TestRequestURI(t *testing.T) { function TestRequestPostArgsSuccess (line 2562) | func TestRequestPostArgsSuccess(t *testing.T) { function TestRequestPostArgsError (line 2572) | func TestRequestPostArgsError(t *testing.T) { function testRequestPostArgsError (line 2584) | func testRequestPostArgsError(t *testing.T, req *Request, s string) { function testRequestPostArgsSuccess (line 2597) | func testRequestPostArgsSuccess(t *testing.T, req *Request, s string, ex... function testReadBodyChunked (line 2620) | func testReadBodyChunked(t *testing.T, bodySize int) { function testReadBodyFixedSize (line 2636) | func testReadBodyFixedSize(t *testing.T, bodySize int) { function createFixedBody (line 2649) | func createFixedBody(bodySize int) []byte { function createChunkedBody (line 2657) | func createChunkedBody(body []byte, trailer map[string]string, withEnd b... function TestWriteMultipartForm (line 2683) | func TestWriteMultipartForm(t *testing.T) { function TestResponseRawBodySet (line 2713) | func TestResponseRawBodySet(t *testing.T) { function TestRequestRawBodySet (line 2725) | func TestRequestRawBodySet(t *testing.T) { function TestResponseRawBodyReset (line 2737) | func TestResponseRawBodyReset(t *testing.T) { function TestRequestRawBodyReset (line 2749) | func TestRequestRawBodyReset(t *testing.T) { function TestResponseRawBodyCopyTo (line 2761) | func TestResponseRawBodyCopyTo(t *testing.T) { function TestRequestRawBodyCopyTo (line 2773) | func TestRequestRawBodyCopyTo(t *testing.T) { type testReader (line 2789) | type testReader struct method Read (line 2795) | func (r *testReader) Read(b []byte) (int, error) { method Close (line 2811) | func (r *testReader) Close() error { function TestResponseImmediateHeaderFlushRegressionFixedLength (line 2818) | func TestResponseImmediateHeaderFlushRegressionFixedLength(t *testing.T) { function TestResponseImmediateHeaderFlushRegressionChunked (line 2831) | func TestResponseImmediateHeaderFlushRegressionChunked(t *testing.T) { function TestResponseImmediateHeaderFlushFixedLength (line 2844) | func TestResponseImmediateHeaderFlushFixedLength(t *testing.T) { function TestResponseImmediateHeaderFlushFixedLengthSkipBody (line 2888) | func TestResponseImmediateHeaderFlushFixedLengthSkipBody(t *testing.T) { function TestResponseImmediateHeaderFlushChunked (line 2923) | func TestResponseImmediateHeaderFlushChunked(t *testing.T) { function TestResponseImmediateHeaderFlushChunkedNoBody (line 2968) | func TestResponseImmediateHeaderFlushChunkedNoBody(t *testing.T) { type ErroneousBodyStream (line 3003) | type ErroneousBodyStream struct method Read (line 3008) | func (ebs *ErroneousBodyStream) Read(p []byte) (n int, err error) { method Close (line 3015) | func (ebs *ErroneousBodyStream) Close() error { function TestResponseBodyStreamErrorOnPanicDuringRead (line 3022) | func TestResponseBodyStreamErrorOnPanicDuringRead(t *testing.T) { function TestResponseBodyStreamErrorOnPanicDuringClose (line 3043) | func TestResponseBodyStreamErrorOnPanicDuringClose(t *testing.T) { function TestResponseBodyStream (line 3064) | func TestResponseBodyStream(t *testing.T) { function TestRequestMultipartFormPipeEmptyFormField (line 3216) | func TestRequestMultipartFormPipeEmptyFormField(t *testing.T) { function testRequestMultipartFormPipeEmptyFormField (line 3256) | func testRequestMultipartFormPipeEmptyFormField(t *testing.T, boundary s... function TestReqCopeToRace (line 3299) | func TestReqCopeToRace(t *testing.T) { function TestRespCopeToRace (line 3315) | func TestRespCopeToRace(t *testing.T) { function TestRequestGetTimeOut (line 3331) | func TestRequestGetTimeOut(t *testing.T) { FILE: http_timing_test.go function BenchmarkCopyZeroAllocOSFileToBytesBuffer (line 12) | func BenchmarkCopyZeroAllocOSFileToBytesBuffer(b *testing.B) { function BenchmarkCopyZeroAllocBytesBufferToOSFile (line 31) | func BenchmarkCopyZeroAllocBytesBufferToOSFile(b *testing.B) { function BenchmarkCopyZeroAllocOSFileToStringsBuilder (line 69) | func BenchmarkCopyZeroAllocOSFileToStringsBuilder(b *testing.B) { function BenchmarkCopyZeroAllocIOLimitedReaderToOSFile (line 88) | func BenchmarkCopyZeroAllocIOLimitedReaderToOSFile(b *testing.B) { function BenchmarkCopyZeroAllocOSFileToOSFile (line 122) | func BenchmarkCopyZeroAllocOSFileToOSFile(b *testing.B) { function BenchmarkCopyZeroAllocOSFileToNetConn (line 154) | func BenchmarkCopyZeroAllocOSFileToNetConn(b *testing.B) { function BenchmarkCopyZeroAllocNetConnToOSFile (line 207) | func BenchmarkCopyZeroAllocNetConnToOSFile(b *testing.B) { FILE: ipv6.go function validateIPv6Literal (line 14) | func validateIPv6Literal(host []byte) error { function parseIPv6Hextets (line 85) | func parseIPv6Hextets(s []byte, allowTrailingColon bool) (groups int, se... function validIPv4 (line 146) | func validIPv4(s []byte) bool { FILE: ipv6_test.go function oracleValid (line 15) | func oracleValid(host []byte) bool { function FuzzValidateIPv6Literal (line 51) | func FuzzValidateIPv6Literal(f *testing.F) { FILE: lbclient.go type BalancingClient (line 11) | type BalancingClient interface type LBClient (line 27) | type LBClient struct method DoDeadline (line 64) | func (cc *LBClient) DoDeadline(req *Request, resp *Response, deadline ... method DoTimeout (line 69) | func (cc *LBClient) DoTimeout(req *Request, resp *Response, timeout ti... method Do (line 76) | func (cc *LBClient) Do(req *Request, resp *Response) error { method init (line 84) | func (cc *LBClient) init() { method AddClient (line 101) | func (cc *LBClient) AddClient(c BalancingClient) int { method RemoveClients (line 114) | func (cc *LBClient) RemoveClients(rc func(BalancingClient) bool) int { method get (line 131) | func (cc *LBClient) get() *lbClient { constant DefaultLBClientTimeout (line 61) | DefaultLBClientTimeout = time.Second type lbClient (line 153) | type lbClient struct method DoDeadline (line 162) | func (c *lbClient) DoDeadline(req *Request, resp *Response, deadline t... method PendingRequests (line 174) | func (c *lbClient) PendingRequests() int { method isHealthy (line 180) | func (c *lbClient) isHealthy(req *Request, resp *Response, err error) ... method incPenalty (line 187) | func (c *lbClient) incPenalty() bool { method decPenalty (line 196) | func (c *lbClient) decPenalty() { constant maxPenalty (line 201) | maxPenalty = 300 constant penaltyDuration (line 203) | penaltyDuration = 3 * time.Second FILE: lbclient_example_test.go function ExampleLBClient (line 10) | func ExampleLBClient() { FILE: methods.go constant MethodGet (line 5) | MethodGet = "GET" constant MethodHead (line 6) | MethodHead = "HEAD" constant MethodPost (line 7) | MethodPost = "POST" constant MethodPut (line 8) | MethodPut = "PUT" constant MethodPatch (line 9) | MethodPatch = "PATCH" constant MethodDelete (line 10) | MethodDelete = "DELETE" constant MethodConnect (line 11) | MethodConnect = "CONNECT" constant MethodOptions (line 12) | MethodOptions = "OPTIONS" constant MethodTrace (line 13) | MethodTrace = "TRACE" FILE: nocopy.go type noCopy (line 8) | type noCopy struct method Lock (line 10) | func (*noCopy) Lock() {} method Unlock (line 11) | func (*noCopy) Unlock() {} FILE: peripconn.go type perIPConnCounter (line 10) | type perIPConnCounter struct method Register (line 17) | func (cc *perIPConnCounter) Register(ip uint32) int { method Unregister (line 28) | func (cc *perIPConnCounter) Unregister(ip uint32) { type perIPConn (line 39) | type perIPConn struct method Close (line 87) | func (c *perIPConn) Close() error { type perIPTLSConn (line 48) | type perIPTLSConn struct method Close (line 103) | func (c *perIPTLSConn) Close() error { function acquirePerIPConn (line 57) | func acquirePerIPConn(conn net.Conn, ip uint32, counter *perIPConnCounte... function getUint32IP (line 119) | func getUint32IP(c net.Conn) uint32 { function getConnIP4 (line 123) | func getConnIP4(c net.Conn) net.IP { function ip2uint32 (line 132) | func ip2uint32(ip net.IP) uint32 { function uint322ip (line 139) | func uint322ip(ip uint32) net.IP { FILE: peripconn_test.go function TestIPxUint32 (line 9) | func TestIPxUint32(t *testing.T) { function testIPxUint32 (line 17) | func testIPxUint32(t *testing.T, n uint32) { function TestPerIPConnCounter (line 25) | func TestPerIPConnCounter(t *testing.T) { FILE: pprofhandler/pprof.go function PprofHandler (line 24) | func PprofHandler(ctx *fasthttp.RequestCtx) { FILE: prefork/prefork.go constant preforkChildEnvVariable (line 17) | preforkChildEnvVariable = "FASTHTTP_PREFORK_CHILD" constant defaultNetwork (line 18) | defaultNetwork = "tcp4" type Logger (line 32) | type Logger interface type Prefork (line 45) | type Prefork struct method logger (line 90) | func (p *Prefork) logger() Logger { method listen (line 97) | func (p *Prefork) listen(addr string) (net.Listener, error) { method setTCPListenerFiles (line 111) | func (p *Prefork) setTCPListenerFiles(addr string) error { method doCommand (line 138) | func (p *Prefork) doCommand() (*exec.Cmd, error) { method prefork (line 160) | func (p *Prefork) prefork(addr string) (err error) { method ListenAndServe (line 237) | func (p *Prefork) ListenAndServe(addr string) error { method ListenAndServeTLS (line 255) | func (p *Prefork) ListenAndServeTLS(addr, certKey, certFile string) er... method ListenAndServeTLSEmbed (line 273) | func (p *Prefork) ListenAndServeTLSEmbed(addr string, certData, keyDat... function IsChild (line 74) | func IsChild() bool { function New (line 79) | func New(s *fasthttp.Server) *Prefork { FILE: prefork/prefork_test.go function setUp (line 15) | func setUp() { function tearDown (line 19) | func tearDown() { function getAddr (line 23) | func getAddr() string { function Test_IsChild (line 27) | func Test_IsChild(t *testing.T) { function Test_New (line 44) | func Test_New(t *testing.T) { function Test_listen (line 67) | func Test_listen(t *testing.T) { function Test_setTCPListenerFiles (line 97) | func Test_setTCPListenerFiles(t *testing.T) { function Test_ListenAndServe (line 132) | func Test_ListenAndServe(t *testing.T) { function Test_ListenAndServeTLS (line 164) | func Test_ListenAndServeTLS(t *testing.T) { function Test_ListenAndServeTLSEmbed (line 196) | func Test_ListenAndServeTLSEmbed(t *testing.T) { FILE: requestctx_setbodystreamwriter_example_test.go function ExampleRequestCtx_SetBodyStreamWriter (line 12) | func ExampleRequestCtx_SetBodyStreamWriter() { function responseStreamHandler (line 19) | func responseStreamHandler(ctx *fasthttp.RequestCtx) { FILE: reuseport/reuseport.go function Listen (line 31) | func Listen(network, addr string) (net.Listener, error) { FILE: reuseport/reuseport_aix.go function Listen (line 23) | func Listen(network, addr string) (net.Listener, error) { FILE: reuseport/reuseport_error.go type ErrNoReusePort (line 8) | type ErrNoReusePort struct method Error (line 13) | func (e *ErrNoReusePort) Error() string { FILE: reuseport/reuseport_example_test.go function ExampleListen (line 11) | func ExampleListen() { function requestHandler (line 22) | func requestHandler(ctx *fasthttp.RequestCtx) { FILE: reuseport/reuseport_solaris.go constant _SO_REUSEPORT (line 14) | _SO_REUSEPORT = 0x100e function Listen (line 29) | func Listen(network, addr string) (net.Listener, error) { FILE: reuseport/reuseport_test.go function TestTCP4 (line 8) | func TestTCP4(t *testing.T) { function TestTCP6 (line 14) | func TestTCP6(t *testing.T) { function hasLocalIPv6 (line 23) | func hasLocalIPv6(t *testing.T) bool { function testNewListener (line 36) | func testNewListener(t *testing.T, network, addr string) { FILE: reuseport/reuseport_windows.go function Listen (line 21) | func Listen(network, addr string) (net.Listener, error) { FILE: round2_32.go function roundUpForSliceCap (line 7) | func roundUpForSliceCap(n int) int { FILE: round2_32_test.go function TestRound2ForSliceCap (line 10) | func TestRound2ForSliceCap(t *testing.T) { function testRound2ForSliceCap (line 27) | func testRound2ForSliceCap(t *testing.T, n, expectedRound2 int) { FILE: round2_64.go function roundUpForSliceCap (line 5) | func roundUpForSliceCap(n int) int { FILE: round2_64_test.go function TestRound2ForSliceCap (line 10) | func TestRound2ForSliceCap(t *testing.T) { function testRound2ForSliceCap (line 28) | func testRound2ForSliceCap(t *testing.T, n, expectedRound2 int) { FILE: s2b.go function s2b (line 6) | func s2b(s string) []byte { FILE: server.go function ServeConn (line 37) | func ServeConn(c net.Conn, handler RequestHandler) error { function Serve (line 56) | func Serve(ln net.Listener, handler RequestHandler) error { function ServeTLS (line 67) | func ServeTLS(ln net.Listener, certFile, keyFile string, handler Request... function ServeTLSEmbed (line 78) | func ServeTLSEmbed(ln net.Listener, certData, keyData []byte, handler Re... function ListenAndServe (line 87) | func ListenAndServe(addr string, handler RequestHandler) error { function ListenAndServeUNIX (line 100) | func ListenAndServeUNIX(addr string, mode os.FileMode, handler RequestHa... function ListenAndServeTLS (line 111) | func ListenAndServeTLS(addr, certFile, keyFile string, handler RequestHa... function ListenAndServeTLSEmbed (line 122) | func ListenAndServeTLSEmbed(addr string, certData, keyData []byte, handl... type RequestHandler (line 135) | type RequestHandler type ServeHandler (line 138) | type ServeHandler type Server (line 149) | type Server struct method NextProto (line 1670) | func (s *Server) NextProto(key string, nph ServeHandler) { method getNextProto (line 1680) | func (s *Server) getNextProto(c net.Conn) (string, error) { method ListenAndServe (line 1708) | func (s *Server) ListenAndServe(addr string) error { method ListenAndServeUNIX (line 1721) | func (s *Server) ListenAndServeUNIX(addr string, mode os.FileMode) err... method ListenAndServeTLS (line 1746) | func (s *Server) ListenAndServeTLS(addr, certFile, keyFile string) err... method ListenAndServeTLSEmbed (line 1765) | func (s *Server) ListenAndServeTLSEmbed(addr string, certData, keyData... method ServeTLS (line 1779) | func (s *Server) ServeTLS(ln net.Listener, certFile, keyFile string) e... method ServeTLSEmbed (line 1803) | func (s *Server) ServeTLSEmbed(ln net.Listener, certData, keyData []by... method AppendCert (line 1825) | func (s *Server) AppendCert(certFile, keyFile string) error { method AppendCertEmbed (line 1842) | func (s *Server) AppendCertEmbed(certData, keyData []byte) error { method configTLS (line 1859) | func (s *Server) configTLS() { method Serve (line 1872) | func (s *Server) Serve(ln net.Listener) error { method Shutdown (line 1952) | func (s *Server) Shutdown() error { method ShutdownWithContext (line 1967) | func (s *Server) ShutdownWithContext(ctx context.Context) (err error) { method logger (line 2078) | func (s *Server) logger() Logger { method ServeConn (line 2104) | func (s *Server) ServeConn(c net.Conn) error { method GetCurrentConcurrency (line 2146) | func (s *Server) GetCurrentConcurrency() uint32 { method GetOpenConnectionsCount (line 2153) | func (s *Server) GetOpenConnectionsCount() int32 { method GetRejectedConnectionsCount (line 2168) | func (s *Server) GetRejectedConnectionsCount() uint32 { method getConcurrency (line 2172) | func (s *Server) getConcurrency() int { method idleTimeout (line 2192) | func (s *Server) idleTimeout() time.Duration { method serveConnCleanup (line 2199) | func (s *Server) serveConnCleanup() { method serveConn (line 2204) | func (s *Server) serveConn(c net.Conn) error { method setState (line 2633) | func (s *Server) setState(nc net.Conn, state ConnState) { method acquireHijackConn (line 2653) | func (s *Server) acquireHijackConn(r io.Reader, c net.Conn) *hijackConn { method releaseHijackConn (line 2669) | func (s *Server) releaseHijackConn(hjc *hijackConn) { method acquireCtx (line 2792) | func (s *Server) acquireCtx(c net.Conn) (ctx *RequestCtx) { method releaseCtx (line 2936) | func (s *Server) releaseCtx(ctx *RequestCtx) { method getServerName (line 2946) | func (s *Server) getServerName() string { method writeFastError (line 2956) | func (s *Server) writeFastError(w io.Writer, statusCode int, msg strin... method writeErrorResponse (line 2989) | func (s *Server) writeErrorResponse(bw *bufio.Writer, ctx *RequestCtx,... method closeIdleConns (line 3014) | func (s *Server) closeIdleConns() { method closeListenersLocked (line 3028) | func (s *Server) closeListenersLocked() error { function TimeoutHandler (line 454) | func TimeoutHandler(h RequestHandler, timeout time.Duration, msg string)... function TimeoutWithCodeHandler (line 465) | func TimeoutWithCodeHandler(h RequestHandler, timeout time.Duration, msg... type RequestConfig (line 500) | type RequestConfig struct function CompressHandler (line 517) | func CompressHandler(h RequestHandler) RequestHandler { function CompressHandlerLevel (line 532) | func CompressHandlerLevel(h RequestHandler, level int) RequestHandler { function CompressHandlerBrotliLevel (line 564) | func CompressHandlerBrotliLevel(h RequestHandler, brotliLevel, otherLeve... type RequestCtx (line 594) | type RequestCtx struct method EarlyHints (line 650) | func (ctx *RequestCtx) EarlyHints() error { method Hijack (line 731) | func (ctx *RequestCtx) Hijack(handler HijackHandler) { method HijackSetNoResponse (line 740) | func (ctx *RequestCtx) HijackSetNoResponse(noResponse bool) { method Hijacked (line 745) | func (ctx *RequestCtx) Hijacked() bool { method SetUserValue (line 760) | func (ctx *RequestCtx) SetUserValue(key, value any) { method SetUserValueBytes (line 773) | func (ctx *RequestCtx) SetUserValueBytes(key []byte, value any) { method UserValue (line 778) | func (ctx *RequestCtx) UserValue(key any) any { method UserValueBytes (line 784) | func (ctx *RequestCtx) UserValueBytes(key []byte) any { method VisitUserValues (line 792) | func (ctx *RequestCtx) VisitUserValues(visitor func([]byte, any)) { method VisitUserValuesAll (line 800) | func (ctx *RequestCtx) VisitUserValuesAll(visitor func(any, any)) { method ResetUserValues (line 805) | func (ctx *RequestCtx) ResetUserValues() { method RemoveUserValue (line 810) | func (ctx *RequestCtx) RemoveUserValue(key any) { method RemoveUserValueBytes (line 815) | func (ctx *RequestCtx) RemoveUserValueBytes(key []byte) { method IsTLS (line 827) | func (ctx *RequestCtx) IsTLS() bool { method TLSConnectionState (line 853) | func (ctx *RequestCtx) TLSConnectionState() *tls.ConnectionState { method Conn (line 867) | func (ctx *RequestCtx) Conn() net.Conn { method reset (line 871) | func (ctx *RequestCtx) reset() { method String (line 955) | func (ctx *RequestCtx) String() string { method ID (line 961) | func (ctx *RequestCtx) ID() uint64 { method ConnID (line 969) | func (ctx *RequestCtx) ConnID() uint64 { method Time (line 974) | func (ctx *RequestCtx) Time() time.Time { method ConnTime (line 980) | func (ctx *RequestCtx) ConnTime() time.Time { method ConnRequestNum (line 988) | func (ctx *RequestCtx) ConnRequestNum() uint64 { method SetConnectionClose (line 994) | func (ctx *RequestCtx) SetConnectionClose() { method SetStatusCode (line 999) | func (ctx *RequestCtx) SetStatusCode(statusCode int) { method SetContentType (line 1004) | func (ctx *RequestCtx) SetContentType(contentType string) { method SetContentTypeBytes (line 1011) | func (ctx *RequestCtx) SetContentTypeBytes(contentType []byte) { method RequestURI (line 1018) | func (ctx *RequestCtx) RequestURI() []byte { method URI (line 1025) | func (ctx *RequestCtx) URI() *URI { method Referer (line 1032) | func (ctx *RequestCtx) Referer() []byte { method UserAgent (line 1039) | func (ctx *RequestCtx) UserAgent() []byte { method Path (line 1046) | func (ctx *RequestCtx) Path() []byte { method Host (line 1053) | func (ctx *RequestCtx) Host() []byte { method QueryArgs (line 1064) | func (ctx *RequestCtx) QueryArgs() *Args { method PostArgs (line 1075) | func (ctx *RequestCtx) PostArgs() *Args { method MultipartForm (line 1096) | func (ctx *RequestCtx) MultipartForm() (*multipart.Form, error) { method MultipartFormWithLimit (line 1107) | func (ctx *RequestCtx) MultipartFormWithLimit(maxBodySize int) (*multi... method FormFile (line 1122) | func (ctx *RequestCtx) FormFile(key string) (*multipart.FileHeader, er... method FormValue (line 1210) | func (ctx *RequestCtx) FormValue(key string) []byte { method IsGet (line 1265) | func (ctx *RequestCtx) IsGet() bool { method IsPost (line 1270) | func (ctx *RequestCtx) IsPost() bool { method IsPut (line 1275) | func (ctx *RequestCtx) IsPut() bool { method IsDelete (line 1280) | func (ctx *RequestCtx) IsDelete() bool { method IsConnect (line 1285) | func (ctx *RequestCtx) IsConnect() bool { method IsOptions (line 1290) | func (ctx *RequestCtx) IsOptions() bool { method IsTrace (line 1295) | func (ctx *RequestCtx) IsTrace() bool { method IsPatch (line 1300) | func (ctx *RequestCtx) IsPatch() bool { method Method (line 1307) | func (ctx *RequestCtx) Method() []byte { method IsHead (line 1312) | func (ctx *RequestCtx) IsHead() bool { method RemoteAddr (line 1319) | func (ctx *RequestCtx) RemoteAddr() net.Addr { method SetRemoteAddr (line 1337) | func (ctx *RequestCtx) SetRemoteAddr(remoteAddr net.Addr) { method LocalAddr (line 1344) | func (ctx *RequestCtx) LocalAddr() net.Addr { method RemoteIP (line 1358) | func (ctx *RequestCtx) RemoteIP() net.IP { method LocalIP (line 1365) | func (ctx *RequestCtx) LocalIP() net.IP { method Error (line 1381) | func (ctx *RequestCtx) Error(msg string, statusCode int) { method Success (line 1389) | func (ctx *RequestCtx) Success(contentType string, body []byte) { method SuccessString (line 1395) | func (ctx *RequestCtx) SuccessString(contentType, body string) { method Redirect (line 1419) | func (ctx *RequestCtx) Redirect(uri string, statusCode int) { method RedirectBytes (line 1447) | func (ctx *RequestCtx) RedirectBytes(uri []byte, statusCode int) { method redirect (line 1452) | func (ctx *RequestCtx) redirect(uri []byte, statusCode int) { method SetBody (line 1470) | func (ctx *RequestCtx) SetBody(body []byte) { method SetBodyString (line 1475) | func (ctx *RequestCtx) SetBodyString(body string) { method ResetBody (line 1480) | func (ctx *RequestCtx) ResetBody() { method SendFile (line 1495) | func (ctx *RequestCtx) SendFile(path string) { method SendFileBytes (line 1510) | func (ctx *RequestCtx) SendFileBytes(path []byte) { method IfModifiedSince (line 1518) | func (ctx *RequestCtx) IfModifiedSince(lastModified time.Time) bool { method NotModified (line 1532) | func (ctx *RequestCtx) NotModified() { method NotFound (line 1538) | func (ctx *RequestCtx) NotFound() { method Write (line 1545) | func (ctx *RequestCtx) Write(p []byte) (int, error) { method WriteString (line 1551) | func (ctx *RequestCtx) WriteString(s string) (int, error) { method PostBody (line 1559) | func (ctx *RequestCtx) PostBody() []byte { method SetBodyStream (line 1574) | func (ctx *RequestCtx) SetBodyStream(bodyStream io.Reader, bodySize in... method SetBodyStreamWriter (line 1589) | func (ctx *RequestCtx) SetBodyStreamWriter(sw StreamWriter) { method IsBodyStream (line 1594) | func (ctx *RequestCtx) IsBodyStream() bool { method Logger (line 1609) | func (ctx *RequestCtx) Logger() Logger { method TimeoutError (line 1629) | func (ctx *RequestCtx) TimeoutError(msg string) { method TimeoutErrorWithCode (line 1643) | func (ctx *RequestCtx) TimeoutErrorWithCode(msg string, statusCode int) { method TimeoutErrorWithResponse (line 1660) | func (ctx *RequestCtx) TimeoutErrorWithResponse(resp *Response) { method LastTimeoutErrorResponse (line 2704) | func (ctx *RequestCtx) LastTimeoutErrorResponse() *Response { method Init2 (line 2818) | func (ctx *RequestCtx) Init2(conn net.Conn, logger Logger, reduceMemor... method Init (line 2837) | func (ctx *RequestCtx) Init(req *Request, remoteAddr net.Addr, logger ... method Deadline (line 2858) | func (ctx *RequestCtx) Deadline() (deadline time.Time, ok bool) { method Done (line 2868) | func (ctx *RequestCtx) Done() <-chan struct{} { method Err (line 2881) | func (ctx *RequestCtx) Err() error { method Value (line 2896) | func (ctx *RequestCtx) Value(key any) any { type HijackHandler (line 705) | type HijackHandler type connTLSer (line 819) | type connTLSer interface type firstByteReader (line 901) | type firstByteReader struct method reset (line 907) | func (r *firstByteReader) reset() { method Read (line 913) | func (r *firstByteReader) Read(b []byte) (int, error) { type Logger (line 929) | type Logger interface type ctxLogger (line 936) | type ctxLogger struct method Printf (line 941) | func (cl *ctxLogger) Printf(format string, args ...any) { function SaveMultipartFile (line 1142) | func SaveMultipartFile(fh *multipart.FileHeader, path string) (err error) { type FormValueFunc (line 1218) | type FormValueFunc function addrToIP (line 1369) | func addrToIP(addr net.Addr) net.IP { function getRedirectStatusCode (line 1458) | func getRedirectStatusCode(statusCode int) int { constant DefaultConcurrency (line 1867) | DefaultConcurrency = 256 * 1024 type connKeepAliveer (line 2010) | type connKeepAliveer interface function acceptConn (line 2016) | func acceptConn(s *Server, ln net.Listener, lastPerIPErrorTime *time.Tim... function wrapPerIPConn (line 2061) | func wrapPerIPConn(s *Server, c net.Conn) net.Conn { function nextConnID (line 2182) | func nextConnID() uint64 { constant DefaultMaxRequestBodySize (line 2190) | DefaultMaxRequestBodySize = 4 * 1024 * 1024 function hijackConnHandler (line 2639) | func hijackConnHandler(ctx *RequestCtx, r io.Reader, c net.Conn, s *Serv... type hijackConn (line 2675) | type hijackConn struct method UnsafeConn (line 2682) | func (c *hijackConn) UnsafeConn() net.Conn { method Read (line 2686) | func (c *hijackConn) Read(p []byte) (int, error) { method Close (line 2690) | func (c *hijackConn) Close() error { function writeResponse (line 2708) | func writeResponse(ctx *RequestCtx, w *bufio.Writer) error { constant defaultReadBufferSize (line 2718) | defaultReadBufferSize = 4096 constant defaultWriteBufferSize (line 2719) | defaultWriteBufferSize = 4096 function acquireByteReader (line 2722) | func acquireByteReader(ctxP **RequestCtx) (*bufio.Reader, error) { function acquireReader (line 2756) | func acquireReader(ctx *RequestCtx) *bufio.Reader { function releaseReader (line 2770) | func releaseReader(s *Server, r *bufio.Reader) { function acquireWriter (line 2774) | func acquireWriter(ctx *RequestCtx) *bufio.Writer { function releaseWriter (line 2788) | func releaseWriter(s *Server, w *bufio.Writer) { type fakeAddrer (line 2906) | type fakeAddrer struct method RemoteAddr (line 2913) | func (fa *fakeAddrer) RemoteAddr() net.Addr { method LocalAddr (line 2917) | func (fa *fakeAddrer) LocalAddr() net.Addr { method Read (line 2921) | func (fa *fakeAddrer) Read(p []byte) (int, error) { method Write (line 2926) | func (fa *fakeAddrer) Write(p []byte) (int, error) { method Close (line 2931) | func (fa *fakeAddrer) Close() error { function defaultErrorHandler (line 2979) | func defaultErrorHandler(ctx *RequestCtx, err error) { type ConnState (line 3041) | type ConnState method String (line 3087) | func (c ConnState) String() string { constant StateNew (line 3048) | StateNew ConnState = iota constant StateActive (line 3061) | StateActive constant StateIdle (line 3067) | StateIdle constant StateHijacked (line 3071) | StateHijacked constant StateClosed (line 3076) | StateClosed FILE: server_example_test.go function ExampleListenAndServe (line 13) | func ExampleListenAndServe() { function ExampleServe (line 34) | func ExampleServe() { function ExampleServer (line 62) | func ExampleServer() { function ExampleRequestCtx_Hijack (line 89) | func ExampleRequestCtx_Hijack() { function ExampleRequestCtx_TimeoutError (line 127) | func ExampleRequestCtx_TimeoutError() { function ExampleRequestCtx_Logger (line 158) | func ExampleRequestCtx_Logger() { FILE: server_race_test.go function TestServerDoneRace (line 13) | func TestServerDoneRace(t *testing.T) { FILE: server_test.go type closerWithRequestCtx (line 29) | type closerWithRequestCtx struct method Close (line 34) | func (c *closerWithRequestCtx) Close() error { function TestServerCRNLAfterPost_Pipeline (line 38) | func TestServerCRNLAfterPost_Pipeline(t *testing.T) { function TestServerCRNLAfterPost (line 83) | func TestServerCRNLAfterPost(t *testing.T) { function TestServerPipelineFlush (line 126) | func TestServerPipelineFlush(t *testing.T) { function TestServerInvalidHeader (line 187) | func TestServerInvalidHeader(t *testing.T) { function TestServerConnState (line 249) | func TestServerConnState(t *testing.T) { function TestSaveMultipartFile (line 322) | func TestSaveMultipartFile(t *testing.T) { function TestServerName (line 379) | func TestServerName(t *testing.T) { function TestRequestCtxString (line 442) | func TestRequestCtxString(t *testing.T) { function TestServerErrSmallBuffer (line 461) | func TestServerErrSmallBuffer(t *testing.T) { function TestRequestCtxIsTLS (line 509) | func TestRequestCtxIsTLS(t *testing.T) { function TestRequestCtxRedirectHTTPSSchemeless (line 542) | func TestRequestCtxRedirectHTTPSSchemeless(t *testing.T) { function TestRequestCtxRedirect (line 562) | func TestRequestCtxRedirect(t *testing.T) { function testRequestCtxRedirect (line 587) | func testRequestCtxRedirect(t *testing.T, origURL, redirectURL, expected... function TestServerResponseServerHeader (line 600) | func TestServerResponseServerHeader(t *testing.T) { function TestServerResponseBodyStream (line 677) | func TestServerResponseBodyStream(t *testing.T) { function TestServerDisableKeepalive (line 768) | func TestServerDisableKeepalive(t *testing.T) { function TestServerMaxConnsPerIPLimit (line 841) | func TestServerMaxConnsPerIPLimit(t *testing.T) { type fakeIPListener (line 919) | type fakeIPListener struct method Accept (line 923) | func (ln *fakeIPListener) Accept() (net.Conn, error) { type fakeIPConn (line 933) | type fakeIPConn struct method RemoteAddr (line 937) | func (conn *fakeIPConn) RemoteAddr() net.Addr { function TestServerConcurrencyLimit (line 945) | func TestServerConcurrencyLimit(t *testing.T) { function TestRejectedRequestsCount (line 1020) | func TestRejectedRequestsCount(t *testing.T) { function TestServerWriteFastError (line 1081) | func TestServerWriteFastError(t *testing.T) { function TestServerTLS (line 1116) | func TestServerTLS(t *testing.T) { function TestServerTLSReadTimeout (line 1166) | func TestServerTLSReadTimeout(t *testing.T) { function TestServerServeTLSEmbed (line 1218) | func TestServerServeTLSEmbed(t *testing.T) { function TestServerMultipartFormDataRequest (line 1293) | func TestServerMultipartFormDataRequest(t *testing.T) { function TestServerGetWithContent (line 1426) | func TestServerGetWithContent(t *testing.T) { function TestServerDisableHeaderNamesNormalizing (line 1449) | func TestServerDisableHeaderNamesNormalizing(t *testing.T) { function TestServerReduceMemoryUsageSerial (line 1496) | func TestServerReduceMemoryUsageSerial(t *testing.T) { function TestServerReduceMemoryUsageConcurrent (line 1527) | func TestServerReduceMemoryUsageConcurrent(t *testing.T) { function testServerRequests (line 1571) | func testServerRequests(t *testing.T, ln *fasthttputil.InmemoryListener) { function TestServerHTTP10ConnectionKeepAlive (line 1603) | func TestServerHTTP10ConnectionKeepAlive(t *testing.T) { function TestServerHTTP10ConnectionClose (line 1682) | func TestServerHTTP10ConnectionClose(t *testing.T) { function TestRequestCtxFormValue (line 1757) | func TestRequestCtxFormValue(t *testing.T) { function TestSetStandardFormValueFunc (line 1782) | func TestSetStandardFormValueFunc(t *testing.T) { function TestRequestCtxUserValue (line 1797) | func TestRequestCtxUserValue(t *testing.T) { function TestServerHeadRequest (line 1841) | func TestServerHeadRequest(t *testing.T) { function TestServerRejectsBackslashInAbsoluteURI (line 1886) | func TestServerRejectsBackslashInAbsoluteURI(t *testing.T) { function TestServerExpect100Continue (line 1918) | func TestServerExpect100Continue(t *testing.T) { function TestServerExpect103EarlyHints (line 1959) | func TestServerExpect103EarlyHints(t *testing.T) { function TestServerContinueHandler (line 2002) | func TestServerContinueHandler(t *testing.T) { function TestCompressHandler (line 2081) | func TestCompressHandler(t *testing.T) { function TestCompressHandlerVary (line 2178) | func TestCompressHandlerVary(t *testing.T) { function TestRequestCtxWriteString (line 2319) | func TestRequestCtxWriteString(t *testing.T) { function TestServeConnKeepRequestAndResponseUntilResetUserValues (line 2344) | func TestServeConnKeepRequestAndResponseUntilResetUserValues(t *testing.... function TestServerErrorHandler (line 2394) | func TestServerErrorHandler(t *testing.T) { function TestServeConnHijackResetUserValues (line 2448) | func TestServeConnHijackResetUserValues(t *testing.T) { function TestServeConnNonHTTP11KeepAlive (line 2480) | func TestServeConnNonHTTP11KeepAlive(t *testing.T) { function TestRequestCtxSetBodyStreamWriter (line 2547) | func TestRequestCtxSetBodyStreamWriter(t *testing.T) { function TestRequestCtxIfModifiedSince (line 2583) | func TestRequestCtxIfModifiedSince(t *testing.T) { function TestRequestCtxSendFileNotModified (line 2613) | func TestRequestCtxSendFileNotModified(t *testing.T) { function TestRequestCtxSendFileModified (line 2644) | func TestRequestCtxSendFileModified(t *testing.T) { function TestRequestCtxSendFile (line 2687) | func TestRequestCtxSendFile(t *testing.T) { function testRequestCtxHijack (line 2730) | func testRequestCtxHijack(t *testing.T, s *Server) { function TestRequestCtxHijack (line 2843) | func TestRequestCtxHijack(t *testing.T) { function TestRequestCtxHijackReduceMemoryUsage (line 2849) | func TestRequestCtxHijackReduceMemoryUsage(t *testing.T) { function TestRequestCtxHijackNoResponse (line 2857) | func TestRequestCtxHijackNoResponse(t *testing.T) { function TestRequestCtxNoHijackNoResponse (line 2892) | func TestRequestCtxNoHijackNoResponse(t *testing.T) { function TestRequestCtxInit (line 2919) | func TestRequestCtxInit(t *testing.T) { function TestTimeoutHandlerSuccess (line 2938) | func TestTimeoutHandlerSuccess(t *testing.T) { function TestTimeoutHandlerTimeout (line 2994) | func TestTimeoutHandlerTimeout(t *testing.T) { function TestTimeoutHandlerTimeoutReuse (line 3061) | func TestTimeoutHandlerTimeoutReuse(t *testing.T) { function TestServerGetOnly (line 3100) | func TestServerGetOnly(t *testing.T) { function TestServerTimeoutErrorWithResponse (line 3148) | func TestServerTimeoutErrorWithResponse(t *testing.T) { function TestServerTimeoutErrorWithCode (line 3192) | func TestServerTimeoutErrorWithCode(t *testing.T) { function TestServerTimeoutError (line 3226) | func TestServerTimeoutError(t *testing.T) { function TestServerMaxRequestsPerConn (line 3260) | func TestServerMaxRequestsPerConn(t *testing.T) { function TestServerConnectionClose (line 3295) | func TestServerConnectionClose(t *testing.T) { function TestServerRequestNumAndTime (line 3331) | func TestServerRequestNumAndTime(t *testing.T) { function TestServerEmptyResponse (line 3368) | func TestServerEmptyResponse(t *testing.T) { function TestServerLogger (line 3388) | func TestServerLogger(t *testing.T) { function TestServerRemoteAddr (line 3436) | func TestServerRemoteAddr(t *testing.T) { function TestServerCustomRemoteAddr (line 3466) | func TestServerCustomRemoteAddr(t *testing.T) { type readWriterRemoteAddr (line 3506) | type readWriterRemoteAddr struct method Close (line 3513) | func (rw *readWriterRemoteAddr) Close() error { method Read (line 3517) | func (rw *readWriterRemoteAddr) Read(b []byte) (int, error) { method Write (line 3521) | func (rw *readWriterRemoteAddr) Write(b []byte) (int, error) { method RemoteAddr (line 3525) | func (rw *readWriterRemoteAddr) RemoteAddr() net.Addr { method LocalAddr (line 3529) | func (rw *readWriterRemoteAddr) LocalAddr() net.Addr { function TestServerConnError (line 3533) | func TestServerConnError(t *testing.T) { function TestServeConnSingleRequest (line 3568) | func TestServeConnSingleRequest(t *testing.T) { function TestServerSetFormValueFunc (line 3589) | func TestServerSetFormValueFunc(t *testing.T) { function TestServeConnMultiRequests (line 3611) | func TestServeConnMultiRequests(t *testing.T) { function TestShutdown (line 3633) | func TestShutdown(t *testing.T) { function TestCloseOnShutdown (line 3694) | func TestCloseOnShutdown(t *testing.T) { function TestShutdownReuse (line 3756) | func TestShutdownReuse(t *testing.T) { function TestShutdownDone (line 3804) | func TestShutdownDone(t *testing.T) { function TestShutdownErr (line 3839) | func TestShutdownErr(t *testing.T) { function TestShutdownCloseIdleConns (line 3878) | func TestShutdownCloseIdleConns(t *testing.T) { function TestShutdownWithContext (line 3923) | func TestShutdownWithContext(t *testing.T) { function TestMultipleServe (line 3976) | func TestMultipleServe(t *testing.T) { function TestMaxBodySizePerRequest (line 4020) | func TestMaxBodySizePerRequest(t *testing.T) { function TestStreamRequestBody (line 4045) | func TestStreamRequestBody(t *testing.T) { function TestStreamRequestBodyExceedMaxSize (line 4101) | func TestStreamRequestBodyExceedMaxSize(t *testing.T) { function TestStreamBodyRequestContentLength (line 4150) | func TestStreamBodyRequestContentLength(t *testing.T) { function checkReader (line 4190) | func checkReader(t *testing.T, r io.Reader, expected string) { function TestMaxReadTimeoutPerRequest (line 4200) | func TestMaxReadTimeoutPerRequest(t *testing.T) { function TestMaxWriteTimeoutPerRequest (line 4250) | func TestMaxWriteTimeoutPerRequest(t *testing.T) { function TestIncompleteBodyReturnsUnexpectedEOF (line 4316) | func TestIncompleteBodyReturnsUnexpectedEOF(t *testing.T) { function TestServerChunkedResponse (line 4333) | func TestServerChunkedResponse(t *testing.T) { function verifyResponse (line 4394) | func verifyResponse(t *testing.T, r *bufio.Reader, expectedStatusCode in... type readWriter (line 4409) | type readWriter struct method Close (line 4416) | func (rw *readWriter) Close() error { method Read (line 4420) | func (rw *readWriter) Read(b []byte) (int, error) { method Write (line 4424) | func (rw *readWriter) Write(b []byte) (int, error) { method RemoteAddr (line 4428) | func (rw *readWriter) RemoteAddr() net.Addr { method LocalAddr (line 4432) | func (rw *readWriter) LocalAddr() net.Addr { method SetDeadline (line 4436) | func (rw *readWriter) SetDeadline(t time.Time) error { method SetReadDeadline (line 4440) | func (rw *readWriter) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 4444) | func (rw *readWriter) SetWriteDeadline(t time.Time) error { type testLogger (line 4448) | type testLogger struct method Printf (line 4453) | func (cl *testLogger) Printf(format string, args ...any) { function TestRequestBodyStreamReadIssue1816 (line 4461) | func TestRequestBodyStreamReadIssue1816(t *testing.T) { function TestRequestCtxInitShouldNotBeCanceledIssue1879 (line 4508) | func TestRequestCtxInitShouldNotBeCanceledIssue1879(t *testing.T) { FILE: server_timing_test.go function BenchmarkRequestCtxRedirect (line 18) | func BenchmarkRequestCtxRedirect(b *testing.B) { function BenchmarkServerGet1ReqPerConn (line 28) | func BenchmarkServerGet1ReqPerConn(b *testing.B) { function BenchmarkServerGet2ReqPerConn (line 32) | func BenchmarkServerGet2ReqPerConn(b *testing.B) { function BenchmarkServerGet10ReqPerConn (line 36) | func BenchmarkServerGet10ReqPerConn(b *testing.B) { function BenchmarkServerGet10KReqPerConn (line 40) | func BenchmarkServerGet10KReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerGet1ReqPerConn (line 44) | func BenchmarkNetHTTPServerGet1ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerGet2ReqPerConn (line 48) | func BenchmarkNetHTTPServerGet2ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerGet10ReqPerConn (line 52) | func BenchmarkNetHTTPServerGet10ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerGet10KReqPerConn (line 56) | func BenchmarkNetHTTPServerGet10KReqPerConn(b *testing.B) { function BenchmarkServerPost1ReqPerConn (line 60) | func BenchmarkServerPost1ReqPerConn(b *testing.B) { function BenchmarkServerPost2ReqPerConn (line 64) | func BenchmarkServerPost2ReqPerConn(b *testing.B) { function BenchmarkServerPost10ReqPerConn (line 68) | func BenchmarkServerPost10ReqPerConn(b *testing.B) { function BenchmarkServerPost10KReqPerConn (line 72) | func BenchmarkServerPost10KReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerPost1ReqPerConn (line 76) | func BenchmarkNetHTTPServerPost1ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerPost2ReqPerConn (line 80) | func BenchmarkNetHTTPServerPost2ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerPost10ReqPerConn (line 84) | func BenchmarkNetHTTPServerPost10ReqPerConn(b *testing.B) { function BenchmarkNetHTTPServerPost10KReqPerConn (line 88) | func BenchmarkNetHTTPServerPost10KReqPerConn(b *testing.B) { function BenchmarkServerGet1ReqPerConn10KClients (line 92) | func BenchmarkServerGet1ReqPerConn10KClients(b *testing.B) { function BenchmarkServerGet2ReqPerConn10KClients (line 96) | func BenchmarkServerGet2ReqPerConn10KClients(b *testing.B) { function BenchmarkServerGet10ReqPerConn10KClients (line 100) | func BenchmarkServerGet10ReqPerConn10KClients(b *testing.B) { function BenchmarkServerGet100ReqPerConn10KClients (line 104) | func BenchmarkServerGet100ReqPerConn10KClients(b *testing.B) { function BenchmarkNetHTTPServerGet1ReqPerConn10KClients (line 108) | func BenchmarkNetHTTPServerGet1ReqPerConn10KClients(b *testing.B) { function BenchmarkNetHTTPServerGet2ReqPerConn10KClients (line 112) | func BenchmarkNetHTTPServerGet2ReqPerConn10KClients(b *testing.B) { function BenchmarkNetHTTPServerGet10ReqPerConn10KClients (line 116) | func BenchmarkNetHTTPServerGet10ReqPerConn10KClients(b *testing.B) { function BenchmarkNetHTTPServerGet100ReqPerConn10KClients (line 120) | func BenchmarkNetHTTPServerGet100ReqPerConn10KClients(b *testing.B) { function BenchmarkServerHijack (line 124) | func BenchmarkServerHijack(b *testing.B) { function BenchmarkServerMaxConnsPerIP (line 151) | func BenchmarkServerMaxConnsPerIP(b *testing.B) { function BenchmarkServerTimeoutError (line 169) | func BenchmarkServerTimeoutError(b *testing.B) { type fakeServerConn (line 194) | type fakeServerConn struct method Read (line 203) | func (c *fakeServerConn) Read(b []byte) (int, error) { method Write (line 225) | func (c *fakeServerConn) Write(b []byte) (int, error) { method RemoteAddr (line 234) | func (c *fakeServerConn) RemoteAddr() net.Addr { method Close (line 238) | func (c *fakeServerConn) Close() error { method SetReadDeadline (line 245) | func (c *fakeServerConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 249) | func (c *fakeServerConn) SetWriteDeadline(t time.Time) error { type fakeListener (line 253) | type fakeListener struct method Accept (line 263) | func (ln *fakeListener) Accept() (net.Conn, error) { method Close (line 290) | func (ln *fakeListener) Close() error { method Addr (line 294) | func (ln *fakeListener) Addr() net.Addr { function newFakeListener (line 298) | func newFakeListener(requestsCount, clientsCount, requestsPerConn int, r... function benchmarkServerGet (line 324) | func benchmarkServerGet(b *testing.B, clientsCount, requestsPerConn int) { function benchmarkNetHTTPServerGet (line 343) | func benchmarkNetHTTPServerGet(b *testing.B, clientsCount, requestsPerCo... function benchmarkServerPost (line 363) | func benchmarkServerPost(b *testing.B, clientsCount, requestsPerConn int) { function benchmarkNetHTTPServerPost (line 386) | func benchmarkNetHTTPServerPost(b *testing.B, clientsCount, requestsPerC... function registerServedRequest (line 414) | func registerServedRequest(b *testing.B, ch chan<- struct{}) { function verifyRequestsServed (line 422) | func verifyRequestsServed(b *testing.B, ch <-chan struct{}) { type realServer (line 439) | type realServer interface function benchmarkServer (line 443) | func benchmarkServer(b *testing.B, s realServer, clientsCount, requestsP... FILE: stackless/func.go function NewFunc (line 21) | func NewFunc(f func(ctx any)) func(ctx any) bool { function funcWorker (line 53) | func funcWorker(funcWorkCh <-chan *funcWork, f func(ctx any)) { function getFuncWork (line 60) | func getFuncWork() *funcWork { function putFuncWork (line 70) | func putFuncWork(fw *funcWork) { type funcWork (line 77) | type funcWork struct FILE: stackless/func_test.go function TestNewFuncSimple (line 10) | func TestNewFuncSimple(t *testing.T) { function TestNewFuncMulti (line 29) | func TestNewFuncMulti(t *testing.T) { FILE: stackless/func_timing_test.go function BenchmarkFuncOverhead (line 8) | func BenchmarkFuncOverhead(b *testing.B) { function BenchmarkFuncPure (line 26) | func BenchmarkFuncPure(b *testing.B) { FILE: stackless/s2b.go function s2b (line 6) | func s2b(s string) []byte { FILE: stackless/writer.go type Writer (line 15) | type Writer interface type NewWriterFunc (line 24) | type NewWriterFunc function NewWriter (line 33) | func NewWriter(dstW io.Writer, newWriter NewWriterFunc) Writer { type writer (line 41) | type writer struct method Write (line 63) | func (w *writer) Write(p []byte) (int, error) { method WriteString (line 70) | func (w *writer) WriteString(s string) (int, error) { method Flush (line 77) | func (w *writer) Flush() error { method Close (line 81) | func (w *writer) Close() error { method Reset (line 85) | func (w *writer) Reset(dstW io.Writer) { method do (line 91) | func (w *writer) do(op op) error { type op (line 54) | type op constant opWrite (line 57) | opWrite op = iota constant opFlush (line 58) | opFlush constant opClose (line 59) | opClose constant opReset (line 60) | opReset function stacklessWriterFunc (line 115) | func stacklessWriterFunc(ctx any) bool { function writerFunc (line 122) | func writerFunc(ctx any) { type xWriter (line 139) | type xWriter struct method Write (line 143) | func (w *xWriter) Write(p []byte) (int, error) { method Reset (line 150) | func (w *xWriter) Reset() { FILE: stackless/writer_test.go function TestCompressFlateSerial (line 13) | func TestCompressFlateSerial(t *testing.T) { function TestCompressFlateConcurrent (line 21) | func TestCompressFlateConcurrent(t *testing.T) { function testCompressFlate (line 29) | func testCompressFlate() error { function TestCompressGzipSerial (line 41) | func TestCompressGzipSerial(t *testing.T) { function TestCompressGzipConcurrent (line 49) | func TestCompressGzipConcurrent(t *testing.T) { function testCompressGzip (line 57) | func testCompressGzip() error { function testWriter (line 69) | func testWriter(newWriter NewWriterFunc, newReader func(io.Reader) io.Re... function testWriterReuse (line 84) | func testWriterReuse(w Writer, r io.Reader, newReader func(io.Reader) io... function testConcurrent (line 111) | func testConcurrent(testFunc func() error, concurrency int) error { FILE: status.go constant statusMessageMin (line 8) | statusMessageMin = 100 constant statusMessageMax (line 9) | statusMessageMax = 511 constant StatusContinue (line 14) | StatusContinue = 100 constant StatusSwitchingProtocols (line 15) | StatusSwitchingProtocols = 101 constant StatusProcessing (line 16) | StatusProcessing = 102 constant StatusEarlyHints (line 17) | StatusEarlyHints = 103 constant StatusOK (line 19) | StatusOK = 200 constant StatusCreated (line 20) | StatusCreated = 201 constant StatusAccepted (line 21) | StatusAccepted = 202 constant StatusNonAuthoritativeInfo (line 22) | StatusNonAuthoritativeInfo = 203 constant StatusNoContent (line 23) | StatusNoContent = 204 constant StatusResetContent (line 24) | StatusResetContent = 205 constant StatusPartialContent (line 25) | StatusPartialContent = 206 constant StatusMultiStatus (line 26) | StatusMultiStatus = 207 constant StatusAlreadyReported (line 27) | StatusAlreadyReported = 208 constant StatusIMUsed (line 28) | StatusIMUsed = 226 constant StatusMultipleChoices (line 30) | StatusMultipleChoices = 300 constant StatusMovedPermanently (line 31) | StatusMovedPermanently = 301 constant StatusFound (line 32) | StatusFound = 302 constant StatusSeeOther (line 33) | StatusSeeOther = 303 constant StatusNotModified (line 34) | StatusNotModified = 304 constant StatusUseProxy (line 35) | StatusUseProxy = 305 constant _ (line 36) | _ = 306 constant StatusTemporaryRedirect (line 37) | StatusTemporaryRedirect = 307 constant StatusPermanentRedirect (line 38) | StatusPermanentRedirect = 308 constant StatusBadRequest (line 40) | StatusBadRequest = 400 constant StatusUnauthorized (line 41) | StatusUnauthorized = 401 constant StatusPaymentRequired (line 42) | StatusPaymentRequired = 402 constant StatusForbidden (line 43) | StatusForbidden = 403 constant StatusNotFound (line 44) | StatusNotFound = 404 constant StatusMethodNotAllowed (line 45) | StatusMethodNotAllowed = 405 constant StatusNotAcceptable (line 46) | StatusNotAcceptable = 406 constant StatusProxyAuthRequired (line 47) | StatusProxyAuthRequired = 407 constant StatusRequestTimeout (line 48) | StatusRequestTimeout = 408 constant StatusConflict (line 49) | StatusConflict = 409 constant StatusGone (line 50) | StatusGone = 410 constant StatusLengthRequired (line 51) | StatusLengthRequired = 411 constant StatusPreconditionFailed (line 52) | StatusPreconditionFailed = 412 constant StatusRequestEntityTooLarge (line 53) | StatusRequestEntityTooLarge = 413 constant StatusRequestURITooLong (line 54) | StatusRequestURITooLong = 414 constant StatusUnsupportedMediaType (line 55) | StatusUnsupportedMediaType = 415 constant StatusRequestedRangeNotSatisfiable (line 56) | StatusRequestedRangeNotSatisfiable = 416 constant StatusExpectationFailed (line 57) | StatusExpectationFailed = 417 constant StatusTeapot (line 58) | StatusTeapot = 418 constant StatusMisdirectedRequest (line 59) | StatusMisdirectedRequest = 421 constant StatusUnprocessableEntity (line 60) | StatusUnprocessableEntity = 422 constant StatusLocked (line 61) | StatusLocked = 423 constant StatusFailedDependency (line 62) | StatusFailedDependency = 424 constant StatusUpgradeRequired (line 63) | StatusUpgradeRequired = 426 constant StatusPreconditionRequired (line 64) | StatusPreconditionRequired = 428 constant StatusTooManyRequests (line 65) | StatusTooManyRequests = 429 constant StatusRequestHeaderFieldsTooLarge (line 66) | StatusRequestHeaderFieldsTooLarge = 431 constant StatusUnavailableForLegalReasons (line 67) | StatusUnavailableForLegalReasons = 451 constant StatusInternalServerError (line 69) | StatusInternalServerError = 500 constant StatusNotImplemented (line 70) | StatusNotImplemented = 501 constant StatusBadGateway (line 71) | StatusBadGateway = 502 constant StatusServiceUnavailable (line 72) | StatusServiceUnavailable = 503 constant StatusGatewayTimeout (line 73) | StatusGatewayTimeout = 504 constant StatusHTTPVersionNotSupported (line 74) | StatusHTTPVersionNotSupported = 505 constant StatusVariantAlsoNegotiates (line 75) | StatusVariantAlsoNegotiates = 506 constant StatusInsufficientStorage (line 76) | StatusInsufficientStorage = 507 constant StatusLoopDetected (line 77) | StatusLoopDetected = 508 constant StatusNotExtended (line 78) | StatusNotExtended = 510 constant StatusNetworkAuthenticationRequired (line 79) | StatusNetworkAuthenticationRequired = 511 function StatusMessage (line 155) | func StatusMessage(statusCode int) string { function formatStatusLine (line 166) | func formatStatusLine(dst, protocol []byte, statusCode int, statusText [... FILE: status_test.go function TestStatusLine (line 8) | func TestStatusLine(t *testing.T) { function testStatusLine (line 19) | func testStatusLine(t *testing.T, statusCode int, expected []byte) { FILE: status_timing_test.go function BenchmarkStatusLine99 (line 8) | func BenchmarkStatusLine99(b *testing.B) { function BenchmarkStatusLine200 (line 12) | func BenchmarkStatusLine200(b *testing.B) { function BenchmarkStatusLine512 (line 16) | func BenchmarkStatusLine512(b *testing.B) { function benchmarkStatusLine (line 20) | func benchmarkStatusLine(b *testing.B, statusCode int, expected []byte) { FILE: stream.go type StreamWriter (line 19) | type StreamWriter function NewStreamReader (line 29) | func NewStreamReader(sw StreamWriter) io.ReadCloser { FILE: stream_test.go function TestNewStreamReader (line 12) | func TestNewStreamReader(t *testing.T) { function TestStreamReaderClose (line 42) | func TestStreamReaderClose(t *testing.T) { FILE: stream_timing_test.go function BenchmarkStreamReader1 (line 10) | func BenchmarkStreamReader1(b *testing.B) { function BenchmarkStreamReader10 (line 14) | func BenchmarkStreamReader10(b *testing.B) { function BenchmarkStreamReader100 (line 18) | func BenchmarkStreamReader100(b *testing.B) { function BenchmarkStreamReader1K (line 22) | func BenchmarkStreamReader1K(b *testing.B) { function BenchmarkStreamReader10K (line 26) | func BenchmarkStreamReader10K(b *testing.B) { function benchmarkStreamReader (line 30) | func benchmarkStreamReader(b *testing.B, size int) { FILE: streaming.go type headerInterface (line 12) | type headerInterface interface type requestStream (line 17) | type requestStream struct method Read (line 25) | func (rs *requestStream) Read(p []byte) (int, error) { function acquireRequestStream (line 89) | func acquireRequestStream(b *bytebufferpool.ByteBuffer, r *bufio.Reader,... function releaseRequestStream (line 97) | func releaseRequestStream(rs *requestStream) { FILE: streaming_test.go function TestStreamingPipeline (line 16) | func TestStreamingPipeline(t *testing.T) { function getChunkedTestEnv (line 105) | func getChunkedTestEnv(t testing.TB) (*fasthttputil.InmemoryListener, []... function TestRequestStreamChunkedWithTrailer (line 147) | func TestRequestStreamChunkedWithTrailer(t *testing.T) { function TestRequestStream (line 218) | func TestRequestStream(t *testing.T) { function BenchmarkRequestStreamE2E (line 238) | func BenchmarkRequestStreamE2E(b *testing.B) { FILE: tcpdialer.go function Dial (line 37) | func Dial(addr string) (net.Conn, error) { function DialTimeout (line 62) | func DialTimeout(addr string, timeout time.Duration) (net.Conn, error) { function DialDualStack (line 90) | func DialDualStack(addr string) (net.Conn, error) { function DialDualStackTimeout (line 116) | func DialDualStackTimeout(addr string, timeout time.Duration) (net.Conn,... type Resolver (line 123) | type Resolver interface type TCPDialer (line 128) | type TCPDialer struct method Dial (line 191) | func (d *TCPDialer) Dial(addr string) (net.Conn, error) { method DialTimeout (line 216) | func (d *TCPDialer) DialTimeout(addr string, timeout time.Duration) (n... method DialDualStack (line 244) | func (d *TCPDialer) DialDualStack(addr string) (net.Conn, error) { method DialDualStackTimeout (line 270) | func (d *TCPDialer) DialDualStackTimeout(addr string, timeout time.Dur... method FlushDNSCache (line 276) | func (d *TCPDialer) FlushDNSCache() { method dial (line 290) | func (d *TCPDialer) dial(addr string, dualStack bool, timeout time.Dur... method tryDial (line 331) | func (d *TCPDialer) tryDial( method cleanExpiredDNSEntries (line 427) | func (d *TCPDialer) cleanExpiredDNSEntries() { method tcpAddrsClean (line 439) | func (d *TCPDialer) tcpAddrsClean() { method getTCPAddrs (line 446) | func (d *TCPDialer) getTCPAddrs(addr string, dualStack bool, deadline ... function FlushDNSCache (line 286) | func FlushDNSCache() { type ErrDialWithUpstream (line 389) | type ErrDialWithUpstream struct method Error (line 394) | func (e *ErrDialWithUpstream) Error() string { method Unwrap (line 398) | func (e *ErrDialWithUpstream) Unwrap() error { function wrapDialWithUpstream (line 402) | func wrapDialWithUpstream(err error, upstream string) error { constant DefaultDialTimeout (line 411) | DefaultDialTimeout = 3 * time.Second type tcpAddrEntry (line 413) | type tcpAddrEntry struct constant DefaultDNSCacheDuration (line 423) | DefaultDNSCacheDuration = time.Minute function resolveTCPAddrs (line 479) | func resolveTCPAddrs(addr string, dualStack bool, resolver Resolver, dea... FILE: tcplisten/socket.go function newSocketCloexecOld (line 12) | func newSocketCloexecOld(domain, typ, proto int) (int, error) { FILE: tcplisten/socket_other.go function newSocketCloexec (line 11) | func newSocketCloexec(domain, typ, proto int) (int, error) { FILE: tcplisten/socket_zos_s390x.go function newSocketCloexec (line 11) | func newSocketCloexec(domain, typ, proto int) (int, error) { FILE: tcplisten/tcplisten.go type Config (line 29) | type Config struct method NewListener (line 53) | func (cfg *Config) NewListener(network, addr string) (net.Listener, er... method fdSetup (line 91) | func (cfg *Config) fdSetup(fd int, sa unix.Sockaddr, addr string) error { function getSockaddr (line 139) | func getSockaddr(network, addr string) (sa unix.Sockaddr, soType int, er... function safeIntToUint32 (line 189) | func safeIntToUint32(i int) (uint32, error) { function safeIntToUintptr (line 200) | func safeIntToUintptr(i int) (uintptr, error) { FILE: tcplisten/tcplisten_js_wasm.go type Config (line 8) | type Config struct method NewListener (line 15) | func (cfg *Config) NewListener(network, addr string) (net.Listener, er... FILE: tcplisten/tcplisten_linux.go constant soReusePort (line 15) | soReusePort = 0x0F constant tcpFastOpen (line 16) | tcpFastOpen = 0x17 function enableDeferAccept (line 19) | func enableDeferAccept(fd int) error { function enableFastOpen (line 26) | func enableFastOpen(fd int) error { constant fastOpenQlen (line 33) | fastOpenQlen = 16 * 1024 function soMaxConn (line 35) | func soMaxConn() (int, error) { function kernelVersion (line 59) | func kernelVersion() (int, int) { function maxAckBacklog (line 103) | func maxAckBacklog(n int) int { constant soMaxConnFilePath (line 117) | soMaxConnFilePath = "/proc/sys/net/core/somaxconn" FILE: tcplisten/tcplisten_other.go constant soReusePort (line 7) | soReusePort = unix.SO_REUSEPORT function enableDeferAccept (line 9) | func enableDeferAccept(fd int) error { function enableFastOpen (line 14) | func enableFastOpen(fd int) error { function soMaxConn (line 19) | func soMaxConn() (int, error) { FILE: tcplisten/tcplisten_test.go function TestConfigDeferAccept (line 14) | func TestConfigDeferAccept(t *testing.T) { function TestConfigReusePort (line 21) | func TestConfigReusePort(t *testing.T) { function TestConfigFastOpen (line 25) | func TestConfigFastOpen(t *testing.T) { function TestConfigAll (line 32) | func TestConfigAll(t *testing.T) { function TestConfigBacklog (line 44) | func TestConfigBacklog(t *testing.T) { function testConfig (line 51) | func testConfig(t *testing.T, cfg Config) { function testConfigV (line 58) | func testConfigV(t *testing.T, cfg Config, network, addr string) { function serveEcho (line 131) | func serveEcho(t *testing.T, ln net.Listener) { FILE: timer.go function initTimer (line 8) | func initTimer(t *time.Timer, timeout time.Duration) *time.Timer { function stopTimer (line 19) | func stopTimer(t *time.Timer) { function AcquireTimer (line 35) | func AcquireTimer(timeout time.Duration) *time.Timer { function ReleaseTimer (line 50) | func ReleaseTimer(t *time.Timer) { FILE: tls.go function GenerateTestCertificate (line 14) | func GenerateTestCertificate(host string) ([]byte, []byte, error) { FILE: uri.go function AcquireURI (line 17) | func AcquireURI() *URI { function ReleaseURI (line 25) | func ReleaseURI(u *URI) { type URI (line 42) | type URI struct method CopyTo (line 72) | func (u *URI) CopyTo(dst *URI) { method Hash (line 94) | func (u *URI) Hash() []byte { method SetHash (line 99) | func (u *URI) SetHash(hash string) { method SetHashBytes (line 104) | func (u *URI) SetHashBytes(hash []byte) { method Username (line 111) | func (u *URI) Username() []byte { method SetUsername (line 116) | func (u *URI) SetUsername(username string) { method SetUsernameBytes (line 121) | func (u *URI) SetUsernameBytes(username []byte) { method Password (line 128) | func (u *URI) Password() []byte { method SetPassword (line 133) | func (u *URI) SetPassword(password string) { method SetPasswordBytes (line 138) | func (u *URI) SetPasswordBytes(password []byte) { method QueryString (line 146) | func (u *URI) QueryString() []byte { method SetQueryString (line 151) | func (u *URI) SetQueryString(queryString string) { method SetQueryStringBytes (line 157) | func (u *URI) SetQueryStringBytes(queryString []byte) { method Path (line 168) | func (u *URI) Path() []byte { method SetPath (line 177) | func (u *URI) SetPath(path string) { method SetPathBytes (line 183) | func (u *URI) SetPathBytes(path []byte) { method PathOriginal (line 191) | func (u *URI) PathOriginal() []byte { method Scheme (line 200) | func (u *URI) Scheme() []byte { method SetScheme (line 209) | func (u *URI) SetScheme(scheme string) { method SetSchemeBytes (line 215) | func (u *URI) SetSchemeBytes(scheme []byte) { method isHTTPS (line 220) | func (u *URI) isHTTPS() bool { method isHTTP (line 224) | func (u *URI) isHTTP() bool { method Reset (line 229) | func (u *URI) Reset() { method Host (line 255) | func (u *URI) Host() []byte { method SetHost (line 260) | func (u *URI) SetHost(host string) { method SetHostBytes (line 266) | func (u *URI) SetHostBytes(host []byte) { method Parse (line 279) | func (u *URI) Parse(host, uri []byte) error { method parse (line 283) | func (u *URI) parse(host, uri []byte, isTLS bool) error { method RequestURI (line 730) | func (u *URI) RequestURI() []byte { method LastPathSegment (line 758) | func (u *URI) LastPathSegment() []byte { method Update (line 779) | func (u *URI) Update(newURI string) { method UpdateBytes (line 795) | func (u *URI) UpdateBytes(newURI []byte) { method updateBytes (line 799) | func (u *URI) updateBytes(newURI, buf []byte) []byte { method FullURI (line 861) | func (u *URI) FullURI() []byte { method AppendBytes (line 867) | func (u *URI) AppendBytes(dst []byte) []byte { method appendSchemeHost (line 877) | func (u *URI) appendSchemeHost(dst []byte) []byte { method WriteTo (line 886) | func (u *URI) WriteTo(w io.Writer) (int64, error) { method String (line 892) | func (u *URI) String() string { method QueryArgs (line 930) | func (u *URI) QueryArgs() *Args { method parseQueryArgs (line 935) | func (u *URI) parseQueryArgs() { function validUserinfo (line 365) | func validUserinfo(userinfo []byte) bool { function isValidScheme (line 385) | func isValidScheme(scheme []byte) bool { function parseHost (line 413) | func parseHost(host []byte) ([]byte, error) { type encoding (line 475) | type encoding constant encodeHost (line 478) | encodeHost encoding = 1 + iota constant encodeZone (line 479) | encodeZone type EscapeError (line 482) | type EscapeError method Error (line 484) | func (e EscapeError) Error() string { type InvalidHostError (line 488) | type InvalidHostError method Error (line 490) | func (e InvalidHostError) Error() string { function unescape (line 500) | func unescape(s []byte, mode encoding) ([]byte, error) { function shouldEscape (line 569) | func shouldEscape(c byte, mode encoding) bool { function ishex (line 599) | func ishex(c byte) bool { function unhex (line 603) | func unhex(c byte) byte { function validOptionalPort (line 609) | func validOptionalPort(port []byte) bool { function normalizePath (line 624) | func normalizePath(dst, src []byte) []byte { function splitHostURI (line 896) | func splitHostURI(host, uri []byte) ([]byte, []byte, []byte) { function stringContainsCTLByte (line 944) | func stringContainsCTLByte(s []byte) bool { FILE: uri_test.go function TestURICopyToQueryArgs (line 12) | func TestURICopyToQueryArgs(t *testing.T) { function TestURIAcquireReleaseSequential (line 28) | func TestURIAcquireReleaseSequential(t *testing.T) { function TestURIAcquireReleaseConcurrent (line 34) | func TestURIAcquireReleaseConcurrent(t *testing.T) { function testURIAcquireRelease (line 54) | func testURIAcquireRelease(t *testing.T) { function TestURILastPathSegment (line 71) | func TestURILastPathSegment(t *testing.T) { function testURILastPathSegment (line 81) | func testURILastPathSegment(t *testing.T, path, expectedSegment string) { function TestURIPathEscape (line 90) | func TestURIPathEscape(t *testing.T) { function testURIPathEscape (line 98) | func testURIPathEscape(t *testing.T, path, expectedRequestURI string) { function TestURIRejectInvalidIPv6 (line 107) | func TestURIRejectInvalidIPv6(t *testing.T) { function TestURIRejectInvalidScheme (line 134) | func TestURIRejectInvalidScheme(t *testing.T) { function TestURIRejectMultiplePorts (line 148) | func TestURIRejectMultiplePorts(t *testing.T) { function TestURIUpdate (line 169) | func TestURIUpdate(t *testing.T) { function TestURIRejectsMixedBracketHost (line 206) | func TestURIRejectsMixedBracketHost(t *testing.T) { function testURIUpdate (line 222) | func testURIUpdate(t *testing.T, base, update, result string) { function TestURIRejectInvalidUserinfo (line 232) | func TestURIRejectInvalidUserinfo(t *testing.T) { function TestURIAllowAtInUserinfo (line 249) | func TestURIAllowAtInUserinfo(t *testing.T) { function TestURIPathNormalize (line 270) | func TestURIPathNormalize(t *testing.T) { function testURIPathNormalize (line 324) | func testURIPathNormalize(t *testing.T, u *URI, requestURI, expectedPath... function TestURINoNormalization (line 331) | func TestURINoNormalization(t *testing.T) { function TestURICopyTo (line 343) | func TestURICopyTo(t *testing.T) { function TestURIFullURI (line 360) | func TestURIFullURI(t *testing.T) { function testURIFullURI (line 392) | func testURIFullURI(t *testing.T, scheme, host, path, hash string, args ... function TestURIParseNilHost (line 407) | func TestURIParseNilHost(t *testing.T) { function testURIParseScheme (line 425) | func testURIParseScheme(t *testing.T, uri, expectedScheme, expectedHost,... function TestIsHttp (line 442) | func TestIsHttp(t *testing.T) { function TestURIParse (line 465) | func TestURIParse(t *testing.T) { function testURIParse (line 534) | func testURIParse(t *testing.T, u *URI, host, uri, function TestURIWithQuerystringOverride (line 559) | func TestURIWithQuerystringOverride(t *testing.T) { function TestInvalidUrl (line 573) | func TestInvalidUrl(t *testing.T) { function TestNoOverwriteInput (line 584) | func TestNoOverwriteInput(t *testing.T) { function TestFragmentInHost (line 604) | func TestFragmentInHost(t *testing.T) { FILE: uri_timing_test.go function BenchmarkURIParsePath (line 7) | func BenchmarkURIParsePath(b *testing.B) { function BenchmarkURIParsePathQueryString (line 11) | func BenchmarkURIParsePathQueryString(b *testing.B) { function BenchmarkURIParsePathQueryStringHash (line 15) | func BenchmarkURIParsePathQueryStringHash(b *testing.B) { function BenchmarkURIParseHostname (line 19) | func BenchmarkURIParseHostname(b *testing.B) { function BenchmarkURIFullURI (line 23) | func BenchmarkURIFullURI(b *testing.B) { function benchmarkURIParse (line 40) | func benchmarkURIParse(b *testing.B, host, uri string) { FILE: uri_unix.go function addLeadingSlash (line 5) | func addLeadingSlash(dst, src []byte) []byte { FILE: uri_windows.go function addLeadingSlash (line 3) | func addLeadingSlash(dst, src []byte) []byte { FILE: uri_windows_test.go function TestURIPathNormalizeIssue86 (line 5) | func TestURIPathNormalizeIssue86(t *testing.T) { FILE: userdata.go type userDataKV (line 7) | type userDataKV struct type userData (line 12) | type userData method Set (line 14) | func (d *userData) Set(key, value any) { method SetBytes (line 49) | func (d *userData) SetBytes(key []byte, value any) { method Get (line 53) | func (d *userData) Get(key any) any { method GetBytes (line 68) | func (d *userData) GetBytes(key []byte) any { method Reset (line 72) | func (d *userData) Reset() { method Remove (line 86) | func (d *userData) Remove(key any) { method RemoveBytes (line 106) | func (d *userData) RemoveBytes(key []byte) { FILE: userdata_test.go function TestUserData (line 11) | func TestUserData(t *testing.T) { function testUserDataGet (line 37) | func testUserDataGet(t *testing.T, u *userData, key []byte, value any) { function TestUserDataValueClose (line 47) | func TestUserDataValueClose(t *testing.T) { type closerValue (line 73) | type closerValue struct method Close (line 77) | func (cv *closerValue) Close() error { function TestUserDataDelete (line 82) | func TestUserDataDelete(t *testing.T) { function TestUserDataSetAndRemove (line 109) | func TestUserDataSetAndRemove(t *testing.T) { function TestUserData_GC (line 124) | func TestUserData_GC(t *testing.T) { FILE: userdata_timing_test.go function BenchmarkUserDataCustom (line 7) | func BenchmarkUserDataCustom(b *testing.B) { function BenchmarkUserDataStdMap (line 27) | func BenchmarkUserDataStdMap(b *testing.B) { FILE: workerpool.go type workerPool (line 17) | type workerPool struct method Start (line 49) | func (wp *workerPool) Start() { method Stop (line 74) | func (wp *workerPool) Stop() { method getMaxIdleWorkerDuration (line 95) | func (wp *workerPool) getMaxIdleWorkerDuration() time.Duration { method clean (line 102) | func (wp *workerPool) clean(scratch *[]*workerChan) { method Serve (line 148) | func (wp *workerPool) Serve(c net.Conn) bool { method getCh (line 171) | func (wp *workerPool) getCh() *workerChan { method release (line 204) | func (wp *workerPool) release(ch *workerChan) bool { method workerFunc (line 216) | func (wp *workerPool) workerFunc(ch *workerChan) { type workerChan (line 44) | type workerChan struct FILE: workerpool_test.go function TestWorkerPoolStartStopSerial (line 12) | func TestWorkerPoolStartStopSerial(t *testing.T) { function TestWorkerPoolStartStopConcurrent (line 18) | func TestWorkerPoolStartStopConcurrent(t *testing.T) { function testWorkerPoolStartStop (line 38) | func testWorkerPoolStartStop() { function TestWorkerPoolMaxWorkersCountSerial (line 50) | func TestWorkerPoolMaxWorkersCountSerial(t *testing.T) { function TestWorkerPoolMaxWorkersCountConcurrent (line 56) | func TestWorkerPoolMaxWorkersCountConcurrent(t *testing.T) { function testWorkerPoolMaxWorkersCountMulti (line 76) | func testWorkerPoolMaxWorkersCountMulti(t *testing.T) { function testWorkerPoolMaxWorkersCount (line 82) | func testWorkerPoolMaxWorkersCount(t *testing.T) { FILE: zstd.go constant CompressZstdSpeedNotSet (line 15) | CompressZstdSpeedNotSet = iota constant CompressZstdBestSpeed (line 16) | CompressZstdBestSpeed constant CompressZstdDefault (line 17) | CompressZstdDefault constant CompressZstdSpeedBetter (line 18) | CompressZstdSpeedBetter constant CompressZstdBestCompression (line 19) | CompressZstdBestCompression function acquireZstdReader (line 28) | func acquireZstdReader(r io.Reader) (*zstd.Decoder, error) { function releaseZstdReader (line 40) | func releaseZstdReader(zr *zstd.Decoder) { function acquireStacklessZstdWriter (line 44) | func acquireStacklessZstdWriter(w io.Writer, compressLevel int) stackles... function releaseStacklessZstdWriter (line 58) | func releaseStacklessZstdWriter(zf stackless.Writer, level int) { function acquireRealZstdWriter (line 65) | func acquireRealZstdWriter(w io.Writer, level int) *zstd.Encoder { function releaseRealZstdWriter (line 81) | func releaseRealZstdWriter(zw *zstd.Encoder, level int) { function AppendZstdBytesLevel (line 88) | func AppendZstdBytesLevel(dst, src []byte, level int) []byte { function WriteZstdLevel (line 94) | func WriteZstdLevel(w io.Writer, p []byte, level int) (int, error) { function stacklessWriteZstd (line 120) | func stacklessWriteZstd(ctx any) { function nonblockingWriteZstd (line 127) | func nonblockingWriteZstd(ctxv any) { function AppendZstdBytes (line 135) | func AppendZstdBytes(dst, src []byte) []byte { function WriteUnzstd (line 141) | func WriteUnzstd(w io.Writer, p []byte) (int, error) { function writeUnzstd (line 145) | func writeUnzstd(w io.Writer, p []byte, maxBodySize int) (int, error) { function AppendUnzstdBytes (line 161) | func AppendUnzstdBytes(dst, src []byte) ([]byte, error) { function normalizeZstdCompressLevel (line 169) | func normalizeZstdCompressLevel(level int) int { FILE: zstd_test.go function TestZstdBytesSerial (line 10) | func TestZstdBytesSerial(t *testing.T) { function TestZstdBytesConcurrent (line 18) | func TestZstdBytesConcurrent(t *testing.T) { function testZstdBytes (line 26) | func testZstdBytes() error { function testZstdBytesSingleCase (line 35) | func testZstdBytesSingleCase(s string) error { function TestZstdCompressSerial (line 56) | func TestZstdCompressSerial(t *testing.T) { function TestZstdCompressConcurrent (line 64) | func TestZstdCompressConcurrent(t *testing.T) { function testZstdCompress (line 72) | func testZstdCompress() error { function testZstdCompressSingleCase (line 81) | func testZstdCompressSingleCase(s string) error {