Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 457 Bytes

Readme.md

File metadata and controls

24 lines (18 loc) · 457 Bytes

response

HTTP response utilities.

View the docs.

response.Pretty = false
response.JSON(w, user)
response.XML(w, user)
response.NotFound(w)
response.Unauthorized(w)
response.Unauthorized(w, "sorry!")
response.Unauthorized(w, map[string]string{"whatever": "here"})

Provides

  • JSON responses
  • XML responses
  • Error responses
  • Status code responses
  • Toggling of "pretty" responses