source: code/trunk/vendor/github.com/valyala/fasthttp/strings.go@ 145

Last change on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago

Updated the Makefile and vendored depedencies

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 3.8 KB
Line 
1package fasthttp
2
3var (
4 defaultServerName = []byte("fasthttp")
5 defaultUserAgent = []byte("fasthttp")
6 defaultContentType = []byte("text/plain; charset=utf-8")
7)
8
9var (
10 strSlash = []byte("/")
11 strSlashSlash = []byte("//")
12 strSlashDotDot = []byte("/..")
13 strSlashDotSlash = []byte("/./")
14 strSlashDotDotSlash = []byte("/../")
15 strBackSlashDotDot = []byte(`\..`)
16 strBackSlashDotBackSlash = []byte(`\.\`)
17 strSlashDotDotBackSlash = []byte(`/..\`)
18 strBackSlashDotDotBackSlash = []byte(`\..\`)
19 strCRLF = []byte("\r\n")
20 strHTTP = []byte("http")
21 strHTTPS = []byte("https")
22 strHTTP10 = []byte("HTTP/1.0")
23 strHTTP11 = []byte("HTTP/1.1")
24 strColon = []byte(":")
25 strColonSlashSlash = []byte("://")
26 strColonSpace = []byte(": ")
27 strCommaSpace = []byte(", ")
28 strGMT = []byte("GMT")
29
30 strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n")
31
32 strExpect = []byte(HeaderExpect)
33 strConnection = []byte(HeaderConnection)
34 strContentLength = []byte(HeaderContentLength)
35 strContentType = []byte(HeaderContentType)
36 strDate = []byte(HeaderDate)
37 strHost = []byte(HeaderHost)
38 strReferer = []byte(HeaderReferer)
39 strServer = []byte(HeaderServer)
40 strTransferEncoding = []byte(HeaderTransferEncoding)
41 strContentEncoding = []byte(HeaderContentEncoding)
42 strAcceptEncoding = []byte(HeaderAcceptEncoding)
43 strUserAgent = []byte(HeaderUserAgent)
44 strCookie = []byte(HeaderCookie)
45 strSetCookie = []byte(HeaderSetCookie)
46 strLocation = []byte(HeaderLocation)
47 strIfModifiedSince = []byte(HeaderIfModifiedSince)
48 strLastModified = []byte(HeaderLastModified)
49 strAcceptRanges = []byte(HeaderAcceptRanges)
50 strRange = []byte(HeaderRange)
51 strContentRange = []byte(HeaderContentRange)
52 strAuthorization = []byte(HeaderAuthorization)
53 strTE = []byte(HeaderTE)
54 strTrailer = []byte(HeaderTrailer)
55 strMaxForwards = []byte(HeaderMaxForwards)
56 strProxyConnection = []byte(HeaderProxyConnection)
57 strProxyAuthenticate = []byte(HeaderProxyAuthenticate)
58 strProxyAuthorization = []byte(HeaderProxyAuthorization)
59 strWWWAuthenticate = []byte(HeaderWWWAuthenticate)
60
61 strCookieExpires = []byte("expires")
62 strCookieDomain = []byte("domain")
63 strCookiePath = []byte("path")
64 strCookieHTTPOnly = []byte("HttpOnly")
65 strCookieSecure = []byte("secure")
66 strCookieMaxAge = []byte("max-age")
67 strCookieSameSite = []byte("SameSite")
68 strCookieSameSiteLax = []byte("Lax")
69 strCookieSameSiteStrict = []byte("Strict")
70 strCookieSameSiteNone = []byte("None")
71
72 strClose = []byte("close")
73 strGzip = []byte("gzip")
74 strBr = []byte("br")
75 strDeflate = []byte("deflate")
76 strKeepAlive = []byte("keep-alive")
77 strUpgrade = []byte("Upgrade")
78 strChunked = []byte("chunked")
79 strIdentity = []byte("identity")
80 str100Continue = []byte("100-continue")
81 strPostArgsContentType = []byte("application/x-www-form-urlencoded")
82 strDefaultContentType = []byte("application/octet-stream")
83 strMultipartFormData = []byte("multipart/form-data")
84 strBoundary = []byte("boundary")
85 strBytes = []byte("bytes")
86 strBasicSpace = []byte("Basic ")
87
88 strApplicationSlash = []byte("application/")
89 strImageSVG = []byte("image/svg")
90 strImageIcon = []byte("image/x-icon")
91 strFontSlash = []byte("font/")
92 strMultipartSlash = []byte("multipart/")
93 strTextSlash = []byte("text/")
94)
Note: See TracBrowser for help on using the repository browser.