Documentation ¶
Index ¶
- Constants
- Variables
- func WithServer(handler http.Handler, context func(*Requester))
- type Requester
- func (requester *Requester) Delete(route, contentType string, params map[string]string) *Response
- func (requester *Requester) Do(request *http.Request) *Response
- func (requester *Requester) Get(route string) *Response
- func (requester *Requester) GetWithAuthorization(route, authorization string) *Response
- func (requester *Requester) GetWithCookie(route, cookie string) *Response
- func (requester *Requester) Options(route string) *Response
- func (requester *Requester) OptionsWithAccessControRequestHeaders(route, acrh string) *Response
- func (requester *Requester) Post(route, contentType string, params map[string]string) *Response
- func (requester *Requester) PostWithAuthorization(route, authorization, contentType string, params map[string]string) *Response
- func (requester *Requester) Put(route, contentType string, params map[string]string) *Response
- func (requester *Requester) Url(route string) string
- type Response
Constants ¶
View Source
const ( JSON = "application/json" FORM_ENCODED = "application/x-www-form-urlencoded" )
Variables ¶
View Source
var RedirectionError = errors.New("Redirection Error")
Functions ¶
func WithServer ¶
Types ¶
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func (*Requester) GetWithAuthorization ¶
func (*Requester) GetWithCookie ¶
func (*Requester) OptionsWithAccessControRequestHeaders ¶
func (*Requester) PostWithAuthorization ¶
Click to show internal directories.
Click to hide internal directories.