-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathconstants.go
More file actions
38 lines (32 loc) · 1.21 KB
/
constants.go
File metadata and controls
38 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
// SPDX-License-Identifier: Apache-2.0
package runtime
const (
// HeaderContentType represents a [http] content-type header, it's value is supposed to be a mime type.
HeaderContentType = "Content-Type"
// HeaderTransferEncoding represents a [http] transfer-encoding header.
HeaderTransferEncoding = "Transfer-Encoding"
// HeaderAccept the Accept header.
HeaderAccept = "Accept"
// HeaderAuthorization the Authorization header.
HeaderAuthorization = "Authorization"
charsetKey = "charset"
// DefaultMime the default fallback mime type.
DefaultMime = "application/octet-stream"
// JSONMime the json mime type.
JSONMime = "application/json"
// YAMLMime the [yaml] mime type.
YAMLMime = "application/x-yaml"
// XMLMime the [xml] mime type.
XMLMime = "application/xml"
// TextMime the text mime type.
TextMime = "text/plain"
// HTMLMime the html mime type.
HTMLMime = "text/html"
// CSVMime the [csv] mime type.
CSVMime = "text/csv"
// MultipartFormMime the multipart form mime type.
MultipartFormMime = "multipart/form-data"
// URLencodedFormMime is the [url] encoded form mime type.
URLencodedFormMime = "application/x-www-form-urlencoded"
)