mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
package fasthttp
|
|
|
|
var (
|
|
defaultServerName = []byte("fasthttp server")
|
|
defaultContentType = []byte("text/plain; charset=utf-8")
|
|
)
|
|
|
|
var (
|
|
strSlash = []byte("/")
|
|
strSlashSlash = []byte("//")
|
|
strSlashDotDot = []byte("/..")
|
|
strSlashDotDotSlash = []byte("/../")
|
|
strCRLF = []byte("\r\n")
|
|
strHTTP = []byte("http")
|
|
strHTTP11 = []byte("HTTP/1.1")
|
|
strColonSlashSlash = []byte("://")
|
|
strColonSpace = []byte(": ")
|
|
|
|
strGet = []byte("GET")
|
|
strHead = []byte("HEAD")
|
|
strPost = []byte("POST")
|
|
|
|
strConnection = []byte("Connection")
|
|
strContentLength = []byte("Content-Length")
|
|
strContentType = []byte("Content-Type")
|
|
strDate = []byte("Date")
|
|
strHost = []byte("Host")
|
|
strReferer = []byte("Referer")
|
|
strServer = []byte("Server")
|
|
strTransferEncoding = []byte("Transfer-Encoding")
|
|
strUserAgent = []byte("User-Agent")
|
|
|
|
strClose = []byte("close")
|
|
strChunked = []byte("chunked")
|
|
strPostArgsContentType = []byte("application/x-www-form-urlencoded")
|
|
)
|