Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + var DefaultResponse = json.RawMessage(`{"message":"ok"}`) + var ErrBadRequest = errors.New("httpjson: bad request") + func Array(v interface{}) interface + func Handler(f interface{}, errFunc ErrorWriter) (http.Handler, error) + func Read(r io.Reader, v interface{}) error + func Request(ctx context.Context) *http.Request + func ResponseWriter(ctx context.Context) http.ResponseWriter + func WithRequest(ctx context.Context, req *http.Request) context.Context + func Write(ctx context.Context, w http.ResponseWriter, status int, v interface{}) + type ErrorWriter func(context.Context, http.ResponseWriter, error)