本站源代码
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

48 lines
1.6KB

  1. // Copyright 2015 go-swagger maintainers
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package runtime
  15. const (
  16. // HeaderContentType represents a http content-type header, it's value is supposed to be a mime type
  17. HeaderContentType = "Content-Type"
  18. // HeaderTransferEncoding represents a http transfer-encoding header.
  19. HeaderTransferEncoding = "Transfer-Encoding"
  20. // HeaderAccept the Accept header
  21. HeaderAccept = "Accept"
  22. charsetKey = "charset"
  23. // DefaultMime the default fallback mime type
  24. DefaultMime = "application/octet-stream"
  25. // JSONMime the json mime type
  26. JSONMime = "application/json"
  27. // YAMLMime the yaml mime type
  28. YAMLMime = "application/x-yaml"
  29. // XMLMime the xml mime type
  30. XMLMime = "application/xml"
  31. // TextMime the text mime type
  32. TextMime = "text/plain"
  33. // HTMLMime the html mime type
  34. HTMLMime = "text/html"
  35. // CSVMime the csv mime type
  36. CSVMime = "text/csv"
  37. // MultipartFormMime the multipart form mime type
  38. MultipartFormMime = "multipart/form-data"
  39. // URLencodedFormMime the url encoded form mime type
  40. URLencodedFormMime = "application/x-www-form-urlencoded"
  41. )
上海开阖软件有限公司 沪ICP备12045867号-1