NewEncoder creates a new encoder from the passed in request. It assumes that raw path contains no valuable information at this point, so it passes in path as path and raw path for subsequent trans
(path, query string, headers http.Header)
| 30 | // raw path contains no valuable information at this point, so it passes in path |
| 31 | // as path and raw path for subsequent trans |
| 32 | func NewEncoder(path, query string, headers http.Header) (*Encoder, error) { |
| 33 | return NewEncoderWithRawPath(path, path, query, headers) |
| 34 | } |
| 35 | |
| 36 | // NewHTTPBindingEncoder creates a new encoder from the passed in request. All query and |
| 37 | // header values will be added on top of the request's existing values. Overwriting |