Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpOptions ¶
type HttpOptions struct {
VerifySsl bool
}
type HttpRequest ¶ added in v0.2.0
type HttpRequest interface {
SetUrl(string) HttpRequest
SetMethod(string) HttpRequest
AddHeader(string, string) HttpRequest
AddHeaders(map[string]string) HttpRequest
SetBody(io.Reader) HttpRequest
SetAuth(*Auth) HttpRequest
SetResult(interface{}) HttpRequest
Url() string
Method() string
Headers() map[string]string
Body() io.Reader
Auth() *Auth
Result() interface{}
}
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func NewClientWithOptions ¶
func NewClientWithOptions(options HttpOptions) *Instance
func (*Instance) Execute ¶
func (ins *Instance) Execute(req HttpRequest) error
func (*Instance) NewRequest ¶ added in v0.2.0
func (ins *Instance) NewRequest() HttpRequest
Click to show internal directories.
Click to hide internal directories.