Documentation ¶
Index ¶
- type Bling
- func (b *Bling) Client(client HTTPClient) *Bling
- func (b *Bling) Delete(pathUrl string) *Request
- func (b *Bling) Get(pathUrl string) *Request
- func (b *Bling) Head(pathUrl string) *Request
- func (b *Bling) Patch(pathUrl string) *Request
- func (b *Bling) Post(pathUrl string) *Request
- func (b *Bling) Put(pathUrl string) *Request
- func (b *Bling) Verb(verb string) *Request
- type CheckRetry
- type HTTPClient
- type Request
- func (r *Request) Body(obj interface{}) *Request
- func (r *Request) Do() Result
- func (r *Request) DoRaw() (*http.Response, error)
- func (r *Request) GetHttpRequest() (*http.Request, error)
- func (r *Request) Path(path string) *Request
- func (r *Request) SetHeader(key, value string) *Request
- func (r *Request) URL() string
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bling ¶
type Bling struct {
HTTPClient HTTPClient
}
func (*Bling) Client ¶
func (b *Bling) Client(client HTTPClient) *Bling
type HTTPClient ¶
HTTPClient is an interface for testing a request object.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
all the backoff ans try managers will go here
func NewRequest ¶
func NewRequest(client HTTPClient, verb string) *Request
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (Result) Has2xxStatus ¶
func (Result) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.