Documentation
¶
Overview ¶
Package httpjson provides generic JSON HTTP response helpers.
It keeps handler code clean by encapsulating the marshal → set Content-Type → write status pattern that every JSON API endpoint repeats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
ContentType is middleware that sets the Content-Type header to application/json.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.