Documentation ¶
Overview ¶
Package accept contains filters to reject requests without a specified Accept header with "406 Not Acceptable".
Index ¶
Constants ¶
View Source
const (
// ALL matches all media types.
ALL = "*/*"
)
Variables ¶
View Source
var ( // EventStream matches media typs used for SSE events. EventStream = Middleware("text/event-stream", "text/*") // HTML matches media typs used for HTML encoded resources. HTML = Middleware("text/html") // JSON matches media typs used for JSON encoded resources. JSON = Middleware("application/json", "application/javascript") // Plain matches media typs used for plaintext resources. Plain = Middleware("text/plain") // XML matches media typs used for XML encoded resources. XML = Middleware("application/xhtml+xml", "application/xml") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.