Codebase list golang-github-go-kit-kit / 618005d
fix minor comment typos (#687) Joel Unzain authored 6 years ago Peter Bourgon committed 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 // DecodeRequestFunc extracts a user-domain request object from an HTTP
88 // request object. It's designed to be used in HTTP servers, for server-side
99 // endpoints. One straightforward DecodeRequestFunc could be something that
10 // JSON decodes from the request body to the concrete response type.
10 // JSON decodes from the request body to the concrete request type.
1111 type DecodeRequestFunc func(context.Context, *http.Request) (request interface{}, err error)
1212
1313 // EncodeRequestFunc encodes the passed request object into the HTTP request
1414 // object. It's designed to be used in HTTP clients, for client-side
15 // endpoints. One straightforward EncodeRequestFunc could something that JSON
15 // endpoints. One straightforward EncodeRequestFunc could be something that JSON
1616 // encodes the object directly to the request body.
1717 type EncodeRequestFunc func(context.Context, *http.Request, interface{}) error
1818