Versions in this module Expand all Collapse all v1 v1.0.10 Nov 5, 2024 Changes in this version + const Delete + const Get + const Head + const Options + const Patch + const Post + const Put + func CloneHeader(src http.Header) http.Header + func CloneValues(src url.Values) url.Values + type ContentType string + const ContentTypeHTML + const ContentTypeJSON + const ContentTypeMultipart + const ContentTypeText + const ContentTypeURLEncode + const ContentTypeXML + type FormFile interface + WriteTo func(writer *multipart.Writer) error + type FormFiles map[string]FormFile + func (f FormFiles) Add(name string, file FormFile) + func (f FormFiles) AddFileObject(name, filename string, file io.Reader) + func (f FormFiles) AddFilePath(name, filename, filepath string) + func (f FormFiles) Del(name string) + func (f FormFiles) Has(name string) bool + type Option func(req *Request) + func WithBody(body io.Reader) Option + func WithClient(client *http.Client) Option + func WithCookies(cookies []*http.Cookie) Option + func WithForm(form url.Values) Option + func WithHeader(header http.Header) Option + func WithQuery(query url.Values) Option + type Request struct + Method string + func NewRequest(method, target string, opts ...Option) *Request + func (r *Request) AddCookie(cookie *http.Cookie) + func (r *Request) Do(ctx context.Context) (*http.Response, error) + func (r *Request) FileForm() FormFiles + func (r *Request) Form() url.Values + func (r *Request) Header() http.Header + func (r *Request) Query() url.Values + func (r *Request) SetBody(body io.Reader) + func (r *Request) SetContentType(contentType ContentType) + func (r *Request) SetCookies(cookies []*http.Cookie) + func (r *Request) SetFileForm(files FormFiles) + func (r *Request) SetForm(form url.Values) + func (r *Request) SetHeader(header http.Header) + func (r *Request) SetQuery(query url.Values) + func (r *Request) TrimURLQuery()