Skip to content
/ rest Public

A generic rest client for making go http requests

License

Notifications You must be signed in to change notification settings

bhanurp/rest

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":"Bearer token"
}
client.Body = bytes.NewReader([]byte(`{"key": "value"}`))
client.Strategy = PostRequest{}
client.Send()

About

A generic rest client for making go http requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages