New Feature
Introduced a new directive omitempty
, which works on encoding a Go struct to an http.Request. Just think of how omitempty
works in encoding/json
package. Here in httpin, omitempty
will omit adding keys to Query, Form, Header when the corresponding value is empty. See reflect.Value.IsZero
for more details about how we judge an empty value.
Thanks to @alecsammon who made this feature availalbe for all httpin users.