-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove unused codes * added some list http header
- Loading branch information
1 parent
79828bf
commit a26d0da
Showing
2 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package header | ||
|
||
const ( | ||
// Headers keys | ||
KeyRequestID = "x-request-id" | ||
KeyAuthorization = "authorization" | ||
KeyUserAgent = "user-agent" | ||
KeyContentType = "content-type" | ||
KeyContentAccept = "accept" | ||
KeyAcceptLanguage = "accept-language" | ||
KeyCacheControl = "cache-control" | ||
|
||
// Content type.Specifying the payload in the request | ||
ContentTypeJSON = "application/json" | ||
ContentTypeXML = "application/xml" | ||
ContentTypeForm = "application/x-www-form-urlencoded" | ||
|
||
// Accepting media. Specifying the types of requested media (in the response) | ||
// See here: https://en.wikipedia.org/wiki/Content_negotiation | ||
MediaTextPlain = "text/plain" | ||
MediaTextHTML = "text/html" | ||
MediaTextCSV = "text/csv" | ||
MediaTextXML = "text/xml" | ||
|
||
MediaImageGIF = "image/gif" | ||
MediaImageJPEG = "image/jpeg" | ||
MediaImagePNG = "image/png" | ||
MediaImageWEBP = "image/webp" | ||
|
||
// Cache control | ||
CacheControlNoCache = "no-cache" | ||
CacheControlNoStore = "no-store" | ||
) |