fix minor comment typos (#687)
Joel Unzain authored 6 years ago
Peter Bourgon committed 6 years ago
7 | 7 | // DecodeRequestFunc extracts a user-domain request object from an HTTP |
8 | 8 | // request object. It's designed to be used in HTTP servers, for server-side |
9 | 9 | // 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. | |
11 | 11 | type DecodeRequestFunc func(context.Context, *http.Request) (request interface{}, err error) |
12 | 12 | |
13 | 13 | // EncodeRequestFunc encodes the passed request object into the HTTP request |
14 | 14 | // 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 | |
16 | 16 | // encodes the object directly to the request body. |
17 | 17 | type EncodeRequestFunc func(context.Context, *http.Request, interface{}) error |
18 | 18 |