Skip to content

HTTP response helpers - json, xml, errors, status code utils, etc

Notifications You must be signed in to change notification settings

gohttp/response

Repository files navigation

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

About

HTTP response helpers - json, xml, errors, status code utils, etc

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages