From 9c6a3f31fd261739a259d33fd1ced54e35864e8f Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Sat, 7 Dec 2024 22:36:28 +0700 Subject: [PATCH] :mute: silent changes: add file constant #4 --- const.go | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 const.go diff --git a/const.go b/const.go new file mode 100644 index 0000000..b4203e5 --- /dev/null +++ b/const.go @@ -0,0 +1,115 @@ +package wrapify + +// Standard HTTP headers related to content negotiation and encoding. +const ( + HeaderAccept = "Accept" // Specifies the media types that are acceptable for the response. + HeaderAcceptCharset = "Accept-Charset" // Specifies the character sets that are acceptable. + HeaderAcceptEncoding = "Accept-Encoding" // Specifies the content encodings that are acceptable. + HeaderAcceptLanguage = "Accept-Language" // Specifies the acceptable languages for the response. + HeaderAuthorization = "Authorization" // Contains the credentials for authenticating the client with the server. + HeaderCacheControl = "Cache-Control" // Specifies directives for caching mechanisms in both requests and responses. + HeaderContentDisposition = "Content-Disposition" // Specifies if the content should be displayed inline or treated as an attachment. + HeaderContentEncoding = "Content-Encoding" // Specifies the encoding transformations that have been applied to the body of the response. + HeaderContentLength = "Content-Length" // Specifies the size of the response body in octets. + HeaderContentType = "Content-Type" // Specifies the media type of the resource. + HeaderCookie = "Cookie" // Contains stored HTTP cookies sent to the server by the client. + HeaderHost = "Host" // Specifies the domain name of the server (for virtual hosting) and the TCP port number. + HeaderOrigin = "Origin" // Specifies the origin of the cross-origin request or preflight request. + HeaderReferer = "Referer" // Contains the address of the previous web page from which a link to the currently requested page was followed. + HeaderUserAgent = "User-Agent" // Contains information about the user agent (browser or client) making the request. + HeaderIfMatch = "If-Match" // Makes the request conditional on the target resource having the same entity tag as the one provided. + HeaderIfNoneMatch = "If-None-Match" // Makes the request conditional on the target resource not having the same entity tag as the one provided. + HeaderETag = "ETag" // Provides the entity tag for the resource. + HeaderLastModified = "Last-Modified" // Specifies the last modified date of the resource. + HeaderLocation = "Location" // Specifies the URL to redirect a client to. + HeaderPragma = "Pragma" // Specifies implementation-specific directives that might affect caching. + HeaderRetryAfter = "Retry-After" // Specifies the time after which the client should retry the request after receiving a 503 Service Unavailable status code. + HeaderServer = "Server" // Contains information about the software used by the origin server to handle the request. + HeaderWWWAuthenticate = "WWW-Authenticate" // Used in HTTP response headers to indicate that the client must authenticate to access the requested resource. + HeaderDate = "Date" // Specifies the date and time at which the message was sent. + HeaderExpires = "Expires" // Specifies the date/time after which the response is considered stale. + HeaderAge = "Age" // Specifies the age of the response in seconds. + HeaderConnection = "Connection" // Specifies control options for the current connection (e.g., keep-alive or close). + HeaderContentLanguage = "Content-Language" // Specifies the language of the content. + HeaderForwarded = "Forwarded" // Contains information about intermediate proxies or gateways that have forwarded the request. + HeaderIfModifiedSince = "If-Modified-Since" // Makes the request conditional on the target resource being modified since the specified date. + HeaderUpgrade = "Upgrade" // Requests the server to switch to a different protocol. + HeaderVia = "Via" // Provides information about intermediate protocols and recipients between the user agent and the server. + HeaderWarning = "Warning" // Carries additional information about the status or transformation of a message. + HeaderXForwardedFor = "X-Forwarded-For" // Contains the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer. + HeaderXForwardedHost = "X-Forwarded-Host" // Contains the original host requested by the client in the Host HTTP request header. + HeaderXForwardedProto = "X-Forwarded-Proto" // Specifies the protocol (HTTP or HTTPS) used by the client. + HeaderXRequestedWith = "X-Requested-With" // Identifies the type of request being made (e.g., Ajax requests). + HeaderXFrameOptions = "X-Frame-Options" // Specifies whether the browser should be allowed to render the page in a ,