Skip to content

Releases

emit v1.1.0 - adds Flush method

Choose a tag to compare

@thisisthemurph thisisthemurph released this 11 Feb 08:37
5691d50

emit v1.1.0

Features

  • Adds a Flush method allowing the sending of responses without a body:
emit.New(w).Status(http.StatusInternalServerError).Flush()

v1.0.0

Choose a tag to compare

@thisisthemurph thisisthemurph released this 11 Feb 05:51

emit v1.0.0 initial release

Features

  • Use emit to simplify HTTP responses with the builder pattern
  • Update the status with the Status method
  • Add headers with the Header method
  • Add cookies with the Cookie method
  • Send a text response with the Text method
  • Send a JSON response with the JSON method
  • Send an error JSON response with the ErrorJSON method
  • Send a 204 No Content response with the NoContent method