Repository navigation
Releases
Releases · thisisthemurph/emit
emit v1.1.0 - adds Flush method
emit v1.1.0
Features
- Adds a
Flushmethod allowing the sending of responses without a body:
emit.New(w).Status(http.StatusInternalServerError).Flush()v1.0.0
emit v1.0.0 initial release
Features
- Use emit to simplify HTTP responses with the builder pattern
- Update the status with the
Statusmethod - Add headers with the
Headermethod - Add cookies with the
Cookiemethod - Send a text response with the
Textmethod - Send a JSON response with the
JSONmethod - Send an error JSON response with the
ErrorJSONmethod - Send a 204 No Content response with the
NoContentmethod