Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestInit ¶
type RequestInit struct { Method string BaseURL string URL string Query interface{} Body io.Reader JSONBody interface{} Header http.Header Context context.Context Options Values // Extra options for customized process - non string option use Context }
func (*RequestInit) GetBody ¶
func (r *RequestInit) GetBody() (io.ReadCloser, error)
func (*RequestInit) GetURL ¶
func (r *RequestInit) GetURL() (string, error)
func (*RequestInit) HasBody ¶
func (r *RequestInit) HasBody() bool
func (RequestInit) NewRequest ¶
func (r RequestInit) NewRequest() (*http.Request, error)
func (RequestInit) WithOverride ¶
func (r RequestInit) WithOverride(o RequestInit) RequestInit
type Values ¶
func (Values) Add ¶
Add adds the value to key. It appends to any existing values associated with key.
func (Values) Get ¶
Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.
func (Values) WithOverride ¶
Click to show internal directories.
Click to hide internal directories.