httpctype

package
v0.0.0-...-754e97a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package httpctype list some common http content-type

Index

Constants

View Source
const (
	CSS  = "text/css; charset=utf-8"
	HTML = "text/html; charset=utf-8"

	Text  = "text/plain; charset=utf-8" // equals Plain
	Plain = "text/plain; charset=utf-8"

	XML2 = "text/xml; charset=utf-8"
	XML  = "application/xml; charset=utf-8"

	YML  = "application/x-yaml; charset=utf-8"
	YAML = "application/x-yaml; charset=utf-8"

	JSON  = "application/json; charset=utf-8"
	JSONP = "application/javascript; charset=utf-8" // equals to JS

	JS  = "application/javascript; charset=utf-8"
	JS2 = "text/javascript; charset=utf-8"

	MSGPACK  = "application/x-msgpack; charset=utf-8"
	MSGPACK2 = "application/msgpack; charset=utf-8"
	PROTOBUF = "application/x-protobuf"

	// Binary represents content type application/octet-stream
	Binary = "application/octet-stream"
)

HTTP Content-Type with charset of the most common data formats.

View Source
const (
	MIMEHTML  = "text/html"
	MIMEText  = "text/plain" // equals MIMEPlain
	MIMEPlain = "text/plain"
	MIMEJSON  = "application/json"
	MIMEXML   = "application/xml"
	MIMEXML2  = "text/xml"
	MIMEYAML  = "application/x-yaml"

	MIMEPOSTForm      = "application/x-www-form-urlencoded"
	MIMEMultiDataForm = "multipart/form-data"

	MIMEPROTOBUF = "application/x-protobuf"
	MIMEMSGPACK  = "application/x-msgpack"
	MIMEMSGPACK2 = "application/msgpack"
)

Content-Type MIME of the most common data formats.

View Source
const Key = "Content-Type"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL