Documentation
¶
Overview ¶
Package middleware contains general-purpose HTTP handlers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTMLHeaders ¶
HTMLHeaders adds the Content-Type text/html header to the request. It adds the header before running the handler. Otherwise, it would be too late to add headers.
func JSONHeaders ¶
JSONHeaders adds the Content-Type application/json header to the request. It adds the header before running the handler. Otherwise, it would be too late to add headers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.