Documentation ¶
Overview ¶
Package rest provides REST API common logic & variable
Index ¶
Constants ¶
View Source
const ( // ContentType represents a HTTP header name "Content-Type" ContentType = "Content-Type" // ApplicationJSON represents a HTTP content type "application/json" ApplicationJSON = "application/json" // ProblemJSON represents a HTTP content type "application/problem+json" ProblemJSON = "application/problem+json" // TextPlain represents a HTTP content type "text/plain" TextPlain = "text/plain" // CharsetUTF8 represents a UTF-8 charset for HTTP response "charset=UTF-8" CharsetUTF8 = "charset=UTF-8" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
func HandlerToRestFunc ¶
func HandlerToRestFunc(f http.HandlerFunc) Func
Click to show internal directories.
Click to hide internal directories.