https://github.com/thinkofher/horror
simple http error handlers
https://github.com/thinkofher/horror
error go http
Last synced: 19 days ago
JSON representation
simple http error handlers
- Host: GitHub
- URL: https://github.com/thinkofher/horror
- Owner: thinkofher
- License: bsd-3-clause
- Created: 2021-03-19T15:12:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-11T15:58:15.000Z (over 4 years ago)
- Last Synced: 2024-01-22T02:29:43.478Z (about 2 years ago)
- Topics: error, go, http
- Language: Go
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Horror
[](https://goreportcard.com/report/github.com/thinkofher/horror)
[](https://pkg.go.dev/github.com/thinkofher/horror)
[](https://github.com/thinkofher/horror/tags)
Package __horror__ implements interfaces for http error handling.
Horror was created to simplify error handling with standard go `http.Handler`
and give developers tools to encapsulate common error scenarios.
Thanks to `WithError` function and `Adapter` type you can use `horror.Handler`
with existing go code based on `http.Handler` interface.
If you're interested in using this module, please see examples that are
placed in [examples](./examples) directory.
See [github.com/thinkofher/horror/status](./status/doc.go) for convenient http errors that
satisfy Error interface from this module.