Documentation
¶
Index ¶
- type HTTPRequest
- func (hc *HTTPRequest) Run() (*http.Response, error)
- func (hc *HTTPRequest) Set() *HTTPRequest
- func (hc *HTTPRequest) SetBody(body any) *HTTPRequest
- func (hc *HTTPRequest) SetMethod(method string) *HTTPRequest
- func (hc *HTTPRequest) SetParam(key string, value string) *HTTPRequest
- func (hc *HTTPRequest) SetResultStruct(customStruct any) *HTTPRequest
- func (hc *HTTPRequest) SetURL(uri string) *HTTPRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
type HTTPRequest struct { Config *client.ArtifactsConfig Body any // contains filtered or unexported fields }
func NewRequest ¶
func NewRequest(config *client.ArtifactsConfig) *HTTPRequest
func (*HTTPRequest) Set ¶
func (hc *HTTPRequest) Set() *HTTPRequest
func (*HTTPRequest) SetBody ¶
func (hc *HTTPRequest) SetBody(body any) *HTTPRequest
func (*HTTPRequest) SetMethod ¶
func (hc *HTTPRequest) SetMethod(method string) *HTTPRequest
func (*HTTPRequest) SetParam ¶
func (hc *HTTPRequest) SetParam(key string, value string) *HTTPRequest
func (*HTTPRequest) SetResultStruct ¶
func (hc *HTTPRequest) SetResultStruct(customStruct any) *HTTPRequest
func (*HTTPRequest) SetURL ¶
func (hc *HTTPRequest) SetURL(uri string) *HTTPRequest
Click to show internal directories.
Click to hide internal directories.