httpin

на сайте с April 14, 2023 04:36
Decode an HTTP request into a custom struct. httpin helps you easily decoding HTTP request data from Query parameters, e.g. ?name=john&is_member=true Headers, e.g. Authorization: xxx Form data, e.g. username=john&password=****** JSON/XML Body, e.g. POST {"name":"john"} Path variables, e.g. /users/{username} File uploads You only need to define a struct to receive/bind data from an HTTP request, without writing any parsing stuff code by yourself.