Releases: ooaklee/reply
Releases · ooaklee/reply
v0.1.0-alpha (Initial Alpha) Release
What's included in this release?
- The priority of responses are structured as follows:
- Error response
- Token response (access token/ refresh token)
- Data response
- Default response
Note -
Default response
occurs if none of the attributes expected to satisfy the other response types is satisfied. The JSON response for the default response returned will be:
{
"data": "{}"
}
- Ability to send responses based on singular error. If the error does not exist in the
error manifest
reply will default to500 - Internal Server Error
Installation
go get github.com/ooaklee/[email protected]
To be actioned
- Tests need to be improved
- Add examples of transfer object overwrite (if it works) 🌚
- Better utilise the error for
NewHTTPResponse
to allow users to have the ability to fall back to another means of sending the response to the consumer - Add logic to default to JSON (
content-type
) - Update logging
- Update logic for the setting headers; currently
reply
simply will override any headers added via middleware if declared in the response method. - Refactor & reorganise code
v0.1.0-alpha.1 Release
What's included in this release?
- Updated logic for the setting headers
- Added logic to default to JSON (
content-type
)
Installation
go get github.com/ooaklee/[email protected]
To be actioned
- Tests need to be improved
- Add examples of transfer object overwrite (if it works) 🌚
- Better utilise the error for
NewHTTPResponse
to allow users to have the ability to fall back to another means of sending the response to the consumer - Update logging
- Refactor & reorganise code