# README
httpwrapper (work in progress)
remote http get wrapper
TODO
two timeouts
context timeout (http call should be canned if parent context is cancelled)
http timeout (session call)
POST/PUT/OPTION
- implement transport timeout (http.Client.transport)
- implenent POST, PUT, and multi-part upload
- implement OPTION
- implement better JSON validation
- custom header
Install
Supports Go 1.13 - 1.14.1
Using go modules (aka. go mod
)
In your go files, simply use:
import "github.com/Greyeye/httpparser"
Then next go mod tidy
or go test
invocation will automatically
populate your go.mod
with the last httpparser release.
Using $GOPATH
go get github.com/Greyeye/httpparser
automatically downloads to $GOPATH/src
. Then in your
go files use:
import "github.com/Greyeye/httpparser"
# Packages
No description provided by the author
# Functions
NewHTTPParser initialise the client.
# Structs
HTTPParser struct initialiser must define CtxClient..
# Interfaces
HTTPParseriface is used to generate mock interface file under ./mock/.