contenttype

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CloudEventContentType is the content type for cloud event.
	CloudEventContentType = "application/cloudevents+json"
	// JSONContentType is the content type for JSON.
	JSONContentType = "application/json"
)

Variables

This section is empty.

Functions

func IsBinaryContentType

func IsBinaryContentType(contentType string) bool

IsBinaryContentType determines if content type is byte[]

func IsCloudEventContentType

func IsCloudEventContentType(contentType string) bool

IsCloudEventContentType checks for content type.

func IsJSONContentType

func IsJSONContentType(contentType string) bool

IsJSONContentType checks for content type.

func IsStringContentType

func IsStringContentType(contentType string) bool

IsStringContentType determines if content type is string

Types

This section is empty.

Jump to

Keyboard shortcuts

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