Provides HTTP utilities. Currently it offers a fast and easy-to-use HTTP client.
go get github.com/aerogo/http/client
response, err := client.Get("https://example.com").End()
client.Post("https://example.com/user/1").End()
client.Put("https://example.com/user/1").End()
client.Delete("https://example.com/user/1").End()
response, err := client.Get("https://example.com").Header("Accept", "text/html").End()
response.Bytes()
response.String()
response.StatusCode()
response.Unmarshal(&obj)
response.Raw()
response.RawString()
response.RawLength()
Please take a look at the style guidelines if you'd like to make a pull request.
Cedric Fung | Scott Rayapoullé | Eduard Urbach |
Want to see your own name here?