pax_global_header00006660000000000000000000000064130130262440014505gustar00rootroot0000000000000052 comment=dd89efed167473dab56959bdfdbfdfed9519f80b headers-1.0.0/000077500000000000000000000000001301302624400131165ustar00rootroot00000000000000headers-1.0.0/.gitignore000066400000000000000000000004121301302624400151030ustar00rootroot00000000000000# Compiled Object files, Static and Dynamic libs (Shared Objects) *.o *.a *.so # Folders _obj _test # Architecture specific extensions/prefixes *.[568vq] [568vq].out *.cgo1.go *.cgo2.c _cgo_defun.c _cgo_gotypes.go _cgo_export.* _testmain.go *.exe *.test *.prof headers-1.0.0/LICENSE000066400000000000000000000020561301302624400141260ustar00rootroot00000000000000MIT License Copyright (c) 2016 go-http-utils Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. headers-1.0.0/README.md000066400000000000000000000006041301302624400143750ustar00rootroot00000000000000# headers HTTP header constants for Gophers. ## Installation ```sh go get -u github.com/go-http-utils/headers ``` ## Documentation https://godoc.org/github.com/go-http-utils/headers ## Usage ```go import ( "fmt" "github.com/go-http-utils/headers" ) fmt.Println(headers.AcceptCharset) // -> "Accept-Charset" fmt.Println(headers.IfNoneMatch) // -> "If-None-Match" // ... ``` headers-1.0.0/headers.go000066400000000000000000000070301301302624400150600ustar00rootroot00000000000000package headers // Version is this package's version const Version = "1.0.0" // HTTP headers const ( Accept = "Accept" AcceptCharset = "Accept-Charset" AcceptEncoding = "Accept-Encoding" AcceptLanguage = "Accept-Language" Authorization = "Authorization" CacheControl = "Cache-Control" ContentLength = "Content-Length" ContentMD5 = "Content-MD5" ContentType = "Content-Type" IfMatch = "If-Match" IfModifiedSince = "If-Modified-Since" IfNoneMatch = "If-None-Match" IfRange = "If-Range" IfUnmodifiedSince = "If-Unmodified-Since" MaxForwards = "Max-Forwards" ProxyAuthorization = "Proxy-Authorization" Pragma = "Pragma" Range = "Range" Referer = "Referer" UserAgent = "User-Agent" TE = "TE" Via = "Via" Warning = "Warning" Cookie = "Cookie" Origin = "Origin" AcceptDatetime = "Accept-Datetime" XRequestedWith = "X-Requested-With" AccessControlAllowOrigin = "Access-Control-Allow-Origin" AccessControlAllowMethods = "Access-Control-Allow-Methods" AccessControlAllows = "Access-Control-Allow-s" AccessControlAllowCredentials = "Access-Control-Allow-Credentials" AccessControlExposes = "Access-Control-Expose-s" AccessControlMaxAge = "Access-Control-Max-Age" AccessControlRequestMethod = "Access-Control-Request-Method" AccessControlRequests = "Access-Control-Request-s" AcceptPatch = "Accept-Patch" AcceptRanges = "Accept-Ranges" Allow = "Allow" ContentEncoding = "Content-Encoding" ContentLanguage = "Content-Language" ContentLocation = "Content-Location" ContentDisposition = "Content-Disposition" ContentRange = "Content-Range" ETag = "ETag" Expires = "Expires" LastModified = "Last-Modified" Link = "Link" Location = "Location" P3P = "P3P" ProxyAuthenticate = "Proxy-Authenticate" Refresh = "Refresh" RetryAfter = "Retry-After" Server = "Server" SetCookie = "Set-Cookie" StrictTransportSecurity = "Strict-Transport-Security" TransferEncoding = "Transfer-Encoding" Upgrade = "Upgrade" Vary = "Vary" WWWAuthenticate = "WWW-Authenticate" // Non-Standard XFrameOptions = "X-Frame-Options" XXSSProtection = "X-XSS-Protection" ContentSecurityPolicy = "Content-Security-Policy" XContentSecurityPolicy = "X-Content-Security-Policy" XWebKitCSP = "X-WebKit-CSP" XContentTypeOptions = "X-Content-Type-Options" XPoweredBy = "X-Powered-By" XUACompatible = "X-UA-Compatible" XForwardedProto = "X-Forwarded-Proto" XHTTPMethodOverride = "X-HTTP-Method-Override" XForwardedFor = "X-Forwarded-For" XRealIP = "X-Real-IP" XCSRFToken = "X-CSRF-Token" )