Versions in this module Expand all Collapse all v0 v0.1.1 May 29, 2022 v0.1.0 May 8, 2022 Changes in this version + const AccessControlAllowHeaders + const AccessControlAllowMethods + const AccessControlAllowOrigin + const ApplicationActuator + const ApplicationJSON + const ContentType + const TextPlain + var IsHTTPClientError = statusGroupEqual(statusCodeGroupClientErr) + var IsHTTPInformation = statusGroupEqual(statusCodeGroupInfo) + var IsHTTPRedirect = statusGroupEqual(statusCodeGroupRedirect) + var IsHTTPServerError = statusGroupEqual(statusCodeGroupServerErr) + var IsHTTPSuccess = statusGroupEqual(statusCodeGroupSuccess) + func HeadersAsFlatMap(h *http.Header) map[string]string + func HeadersAsMap(h *http.Header) map[string][]string + func IsHTTPError(code int) bool + func RemoveHeaders(h *http.Header, keys []string) + func ReturnJSON(ctx context.Context, w http.ResponseWriter, code int, v interface{}) + func ReturnProtoJSON(ctx context.Context, w http.ResponseWriter, code int, v proto.Message) + func WithBody(r *http.Request, v interface{}) error + func WithProtoBody(r *http.Request, v proto.Message) error