| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-01-15 | all: convert license and copyright to use SPDX identifiers | Shulhan | |
| With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/ | |||
| 2024-01-24 | lib/http: update doc to use comment links | Shulhan | |
| 2023-11-22 | lib/http: update comment on Callback type | Shulhan | |
| 2022-05-09 | all: reformat all codes using gofmt 1.19 (the Go tip) | Shulhan | |
| 2021-03-04 | http: refactoring parameters on Callback and CallbackErrorHandler | Shulhan | |
| Previously, the parameters to Callback has three types: the http.ResponseWriter, *http.Request, and []byte for response body. Not only the type names are long, there is no information on the registered Endpoint on the receiver of Callback. This changes wrap the three parameters into single type EndpointRequest with addition field Endpoint, which contains the registered Endpoint. On the CallbackErrorHandler we also have three parameters, but instead of request body we have an error. This changes store the error for CallbackErrorHandler inside EndpointRequest.Error field. | |||
| 2019-01-05 | lib/http: add parameter http.ResponseWriter to Callback | Shulhan | |
| The ResponseWriter can be used to write custom header or to write cookies. | |||
| 2018-12-16 | lib/http: add custom error type for callback | Shulhan | |
| Custom error "StatusError" can be used by user to return an error with status code and message. | |||
| 2018-12-16 | lib/http: new package for simplifying writing HTTP server | Shulhan | |
