Documentation ¶
Index ¶
- Variables
- type Request
- func Connect(url string) (*Request, error)
- func Delete(url string) (*Request, error)
- func Get(url string) (*Request, error)
- func Head(url string) (*Request, error)
- func New(method, uri string) (*Request, error)
- func Options(url string) (*Request, error)
- func Patch(url string) (*Request, error)
- func Post(url string) (*Request, error)
- func Put(url string) (*Request, error)
- func Trace(url string) (*Request, error)
- func (r *Request) Body(body interface{}) (err error)
- func (r *Request) Form(options ...form.Option) (err error)
- func (r *Request) GetBody() io.Reader
- func (r *Request) GetHeader(key string) (value []string, ok bool)
- func (r *Request) GetHeaders() http.Header
- func (r *Request) GetMethod() string
- func (r *Request) GetUrl() string
- func (r *Request) Json(body interface{}) (err error)
- func (r *Request) MultiForm(options ...multipart_form.Option) (err error)
- func (r *Request) SetHeader(key string, value ...string)
- func (r *Request) Xml(body interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCanNotMarshal = errors.New(`can't marshal (implement encoding.BinaryMarshaler)`)
)
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) GetHeaders ¶
Click to show internal directories.
Click to hide internal directories.