Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultContentType = new(text.Plain)
Default content type to be used when no content type is specified or no matching content type is found in the registry.
View Source
var Registry = map[string]ContentType{ "text/plain": new(text.Plain), "text/markdown": new(text.Markdown), "user/profile": new(user.Profile), "test/error": new(test.Error), }
The registry maps content type strings to instances of ContentType. XXX This is probably less than ideal, and could maybe be done with introspection, but will serve for now.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.