Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
HttpClient handles HTTP requests and file uploads
func NewHttpClient ¶
func NewHttpClient() *HttpClient
NewHttpClient creates a new HttpClient instance
func (*HttpClient) Do ¶
func (h *HttpClient) Do(ctx context.Context, opts *HttpRequestOptions) (*HttpResponse, error)
Do performs an HTTP request.
If the request has a body, it will be sent as a multipart/form-data request. If the request has a file, it will be uploaded as a file. If the request has a form data, it will be added as form fields. If the request has headers, they will be added to the request. If the request has a content type, it will be set as the content type of the request. If the request has a method, it will be set as the method of the request.
type HttpRequestOptions ¶
Click to show internal directories.
Click to hide internal directories.