README ¶ A simple http client for posting a json payload and receiving a json response. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type HttpJson func New(maxIdle int, requestTimeout int) *HttpJson func NewWithClient(client *http.Client) *HttpJson func (c *HttpJson) Get(url string, response interface{}) error func (c *HttpJson) Post(url string, request interface{}, response interface{}) error Constants ¶ View Source const ApplicationJson = "application/json" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type HttpJson ¶ type HttpJson struct { // contains filtered or unexported fields } func New ¶ func New(maxIdle int, requestTimeout int) *HttpJson func NewWithClient ¶ func NewWithClient(client *http.Client) *HttpJson func (*HttpJson) Get ¶ func (c *HttpJson) Get(url string, response interface{}) error func (*HttpJson) Post ¶ func (c *HttpJson) Post(url string, request interface{}, response interface{}) error Source Files ¶ View all Source files httpjson.go Click to show internal directories. Click to hide internal directories.