Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | package restful |
| 2 | |
| 3 | // Copyright 2013 Ernest Micklei. All rights reserved. |
| 4 | // Use of this source code is governed by a license |
| 5 | // that can be found in the LICENSE file. |
| 6 | |
| 7 | const ( |
| 8 | MIME_XML = "application/xml" // Accept or Content-Type used in Consumes() and/or Produces() |
| 9 | MIME_JSON = "application/json" // Accept or Content-Type used in Consumes() and/or Produces() |
| 10 | MIME_OCTET = "application/octet-stream" // If Content-Type is not present in request, use the default |
| 11 | |
| 12 | HEADER_Allow = "Allow" |
| 13 | HEADER_Accept = "Accept" |
| 14 | HEADER_Origin = "Origin" |
| 15 | HEADER_ContentType = "Content-Type" |
| 16 | HEADER_LastModified = "Last-Modified" |
| 17 | HEADER_AcceptEncoding = "Accept-Encoding" |
| 18 | HEADER_ContentEncoding = "Content-Encoding" |
| 19 | HEADER_AccessControlExposeHeaders = "Access-Control-Expose-Headers" |
| 20 | HEADER_AccessControlRequestMethod = "Access-Control-Request-Method" |
| 21 | HEADER_AccessControlRequestHeaders = "Access-Control-Request-Headers" |
| 22 | HEADER_AccessControlAllowMethods = "Access-Control-Allow-Methods" |
| 23 | HEADER_AccessControlAllowOrigin = "Access-Control-Allow-Origin" |
| 24 | HEADER_AccessControlAllowCredentials = "Access-Control-Allow-Credentials" |
| 25 | HEADER_AccessControlAllowHeaders = "Access-Control-Allow-Headers" |
| 26 | HEADER_AccessControlMaxAge = "Access-Control-Max-Age" |
| 27 | |
| 28 | ENCODING_GZIP = "gzip" |
| 29 | ENCODING_DEFLATE = "deflate" |
| 30 | ) |