Skip to content

v0.19.0

Latest
Compare
Choose a tag to compare
@ggicci ggicci released this 20 May 23:00
· 1 commit to main since this release
eed0621

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.

#107

Thanks to @alecsammon who made this feature availalbe for all httpin users.