Skip to content

Repository files navigation

rest

A simple wrapper around http client to make restful requests easier.

  • An example usage for a post request
client:=DefaultClient()
client.URL="http://example.com"client.Headers=map[string]string{
"ContentType": "application/json""Authorization":"Bearertoken"
}
client.Body=bytes.NewReader([]byte(`{"key": "value"}`))
client.Strategy=PostRequest{}
client.Send()

About

A generic rest client for making go http requests

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages