Versions in this module Expand all Collapse all v0 v0.3.0 Aug 31, 2022 Changes in this version + const ContentTypeEventStream + const ContentTypeForm + const ContentTypeHTML + const ContentTypeJSON + const ContentTypeJSONLD + const ContentTypeNQuads + const ContentTypeNTriples + const ContentTypePlainText + const ContentTypeRDFXML + const ContentTypeTurtle + const ContentTypeUnknown + const ContentTypeXML + var ContentTypeCtxKey = &contextKey + var DefaultConfig = ErrorConfig + var StatusCtxKey = &contextKey + func Data(w http.ResponseWriter, r *http.Request, v []byte) + func Error(w http.ResponseWriter, r *http.Request, err error, cfg *ErrorConfig) + func HTML(w http.ResponseWriter, r *http.Request, v string) + func JSON(w http.ResponseWriter, r *http.Request, v interface{}) + func JSONLD(w http.ResponseWriter, r *http.Request, v string) + func NTriples(w http.ResponseWriter, r *http.Request, v string) + func NoContent(w http.ResponseWriter, r *http.Request) + func PlainText(w http.ResponseWriter, r *http.Request, v string) + func RDFXML(w http.ResponseWriter, r *http.Request, v string) + func SetContentType(contentType ContentType) func(next http.Handler) http.Handler + func Status(r *http.Request, status int) + func Turtle(w http.ResponseWriter, r *http.Request, v string) + func XML(w http.ResponseWriter, r *http.Request, v interface{}) + type ContentType int + func GetAcceptedContentType(r *http.Request) ContentType + func GetContentType(s string) ContentType + func GetRequestContentType(r *http.Request) ContentType + type ErrorConfig struct + DatasetID string + Log *zerolog.Logger + Message string + OrgID string + PreventBubble bool + StatusCode int