Top 1.1% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 9.0% forks on proxy.golang.org
Top 1.7% docker downloads on proxy.golang.org
proxy.golang.org : github.com/moogar0880/problems
Package problems provides an RFC-9457 (https://tools.ietf.org/html/rfc9457) and RFC 7807 (https://tools.ietf.org/html/rfc7807) compliant implementation of HTTP problem details. Which are defined as a means to carry machine-readable details of errors in an HTTP response to avoid the need to define new error response formats for HTTP APIs. The problem details specification was designed to allow for schema extensions. There are two possible ways to create problem extensions: 1. You can embed a problem in your extension problem type. 2. You can use the ExtendedProblem to leverage the existing types in this library. See the examples for references on how to use either of these extension mechanisms. Additionally, this library also ships with default http.HandlerFunc implementations which are capable of writing problems to a http.ResponseWriter in either of the two standard media formats, JSON and XML.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/moogar0880/problems
Keywords:
go
, golang
, http-middleware
, json
, rfc-7807
, rfc-9457
License: Apache-2.0
Latest release: 6 months ago
First release: over 6 years ago
Namespace: github.com/moogar0880
Dependent packages: 21
Dependent repositories: 56
Stars: 44 on GitHub
Forks: 5 on GitHub
Docker dependents: 5
Docker downloads: 6,667
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago