Documentation ¶
Index ¶
- type DefaultHttpRequest
- func (httpRequest *DefaultHttpRequest) AddFormParam(key string, value def.FormData)
- func (httpRequest *DefaultHttpRequest) AddHeaderParam(key string, value string)
- func (httpRequest *DefaultHttpRequest) AddPathParam(key string, value string)
- func (httpRequest *DefaultHttpRequest) AddQueryParam(key string, value string)
- func (httpRequest *DefaultHttpRequest) Builder() *HttpRequestBuilder
- func (httpRequest *DefaultHttpRequest) CanonicalMapQueryParams(key string, value reflect.Value) []map[string]string
- func (httpRequest *DefaultHttpRequest) CanonicalSliceQueryParamsToMulti(value reflect.Value) []string
- func (httpRequest *DefaultHttpRequest) CanonicalStringQueryParams(value reflect.Value) string
- func (httpRequest *DefaultHttpRequest) ConvertRequest() (*http.Request, error)
- func (httpRequest *DefaultHttpRequest) GetBody() interface{}
- func (httpRequest *DefaultHttpRequest) GetBodyToBytes() (*bytes.Buffer, error)
- func (httpRequest *DefaultHttpRequest) GetEndpoint() string
- func (httpRequest *DefaultHttpRequest) GetFormPrams() map[string]def.FormData
- func (httpRequest *DefaultHttpRequest) GetHeaderParams() map[string]string
- func (httpRequest *DefaultHttpRequest) GetMethod() string
- func (httpRequest *DefaultHttpRequest) GetPath() string
- func (httpRequest *DefaultHttpRequest) GetPathPrams() map[string]string
- func (httpRequest *DefaultHttpRequest) GetProgressInterval() int64
- func (httpRequest *DefaultHttpRequest) GetProgressListener() progress.Listener
- func (httpRequest *DefaultHttpRequest) GetQueryParams() map[string]interface{}
- func (httpRequest *DefaultHttpRequest) GetSigningAlgorithm() algorithm.SigningAlgorithm
- type HttpRequest
- type HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddAutoFilledPathParam(key string, value string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddFormParam(key string, value def.FormData) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddHeaderParam(key string, value string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddPathParam(key string, value string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddQueryParam(key string, value interface{}) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) Build() *DefaultHttpRequest
- func (builder *HttpRequestBuilder) WithBody(kind string, body interface{}) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithEndpoint(endpoint string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithMethod(method string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithPath(path string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithProgressInterval(progressInterval int64) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithProgressListener(progressListener progress.Listener) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithSigningAlgorithm(signingAlgorithm algorithm.SigningAlgorithm) *HttpRequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultHttpRequest ¶
type DefaultHttpRequest struct {
// contains filtered or unexported fields
}
func (*DefaultHttpRequest) AddFormParam ¶
func (httpRequest *DefaultHttpRequest) AddFormParam(key string, value def.FormData)
func (*DefaultHttpRequest) AddHeaderParam ¶
func (httpRequest *DefaultHttpRequest) AddHeaderParam(key string, value string)
func (*DefaultHttpRequest) AddPathParam ¶
func (httpRequest *DefaultHttpRequest) AddPathParam(key string, value string)
func (*DefaultHttpRequest) AddQueryParam ¶
func (httpRequest *DefaultHttpRequest) AddQueryParam(key string, value string)
func (*DefaultHttpRequest) Builder ¶
func (httpRequest *DefaultHttpRequest) Builder() *HttpRequestBuilder
func (*DefaultHttpRequest) CanonicalMapQueryParams ¶
func (*DefaultHttpRequest) CanonicalSliceQueryParamsToMulti ¶
func (httpRequest *DefaultHttpRequest) CanonicalSliceQueryParamsToMulti(value reflect.Value) []string
func (*DefaultHttpRequest) CanonicalStringQueryParams ¶
func (httpRequest *DefaultHttpRequest) CanonicalStringQueryParams(value reflect.Value) string
func (*DefaultHttpRequest) ConvertRequest ¶
func (httpRequest *DefaultHttpRequest) ConvertRequest() (*http.Request, error)
func (*DefaultHttpRequest) GetBody ¶
func (httpRequest *DefaultHttpRequest) GetBody() interface{}
func (*DefaultHttpRequest) GetBodyToBytes ¶
func (httpRequest *DefaultHttpRequest) GetBodyToBytes() (*bytes.Buffer, error)
func (*DefaultHttpRequest) GetEndpoint ¶
func (httpRequest *DefaultHttpRequest) GetEndpoint() string
func (*DefaultHttpRequest) GetFormPrams ¶
func (httpRequest *DefaultHttpRequest) GetFormPrams() map[string]def.FormData
func (*DefaultHttpRequest) GetHeaderParams ¶
func (httpRequest *DefaultHttpRequest) GetHeaderParams() map[string]string
func (*DefaultHttpRequest) GetMethod ¶
func (httpRequest *DefaultHttpRequest) GetMethod() string
func (*DefaultHttpRequest) GetPath ¶
func (httpRequest *DefaultHttpRequest) GetPath() string
func (*DefaultHttpRequest) GetPathPrams ¶
func (httpRequest *DefaultHttpRequest) GetPathPrams() map[string]string
func (*DefaultHttpRequest) GetProgressInterval ¶ added in v0.1.50
func (httpRequest *DefaultHttpRequest) GetProgressInterval() int64
func (*DefaultHttpRequest) GetProgressListener ¶ added in v0.1.50
func (httpRequest *DefaultHttpRequest) GetProgressListener() progress.Listener
func (*DefaultHttpRequest) GetQueryParams ¶
func (httpRequest *DefaultHttpRequest) GetQueryParams() map[string]interface{}
func (*DefaultHttpRequest) GetSigningAlgorithm ¶ added in v0.1.61
func (httpRequest *DefaultHttpRequest) GetSigningAlgorithm() algorithm.SigningAlgorithm
type HttpRequest ¶
type HttpRequest interface { Builder() *HttpRequestBuilder GetEndpoint() string GetMethod() string GetPath() string GetHeaderParams() map[string]string GetPathPrams() map[string]string GetQueryParams() map[string]interface{} GetBody() interface{} GetBodyToBytes() (*bytes.Buffer, error) GetProgressListener() progress.Listener GetProgressInterval() int64 }
type HttpRequestBuilder ¶
type HttpRequestBuilder struct {
// contains filtered or unexported fields
}
func NewHttpRequestBuilder ¶
func NewHttpRequestBuilder() *HttpRequestBuilder
func (*HttpRequestBuilder) AddAutoFilledPathParam ¶
func (builder *HttpRequestBuilder) AddAutoFilledPathParam(key string, value string) *HttpRequestBuilder
func (*HttpRequestBuilder) AddFormParam ¶
func (builder *HttpRequestBuilder) AddFormParam(key string, value def.FormData) *HttpRequestBuilder
func (*HttpRequestBuilder) AddHeaderParam ¶
func (builder *HttpRequestBuilder) AddHeaderParam(key string, value string) *HttpRequestBuilder
func (*HttpRequestBuilder) AddPathParam ¶
func (builder *HttpRequestBuilder) AddPathParam(key string, value string) *HttpRequestBuilder
func (*HttpRequestBuilder) AddQueryParam ¶
func (builder *HttpRequestBuilder) AddQueryParam(key string, value interface{}) *HttpRequestBuilder
func (*HttpRequestBuilder) Build ¶
func (builder *HttpRequestBuilder) Build() *DefaultHttpRequest
func (*HttpRequestBuilder) WithBody ¶
func (builder *HttpRequestBuilder) WithBody(kind string, body interface{}) *HttpRequestBuilder
func (*HttpRequestBuilder) WithEndpoint ¶
func (builder *HttpRequestBuilder) WithEndpoint(endpoint string) *HttpRequestBuilder
func (*HttpRequestBuilder) WithMethod ¶
func (builder *HttpRequestBuilder) WithMethod(method string) *HttpRequestBuilder
func (*HttpRequestBuilder) WithPath ¶
func (builder *HttpRequestBuilder) WithPath(path string) *HttpRequestBuilder
func (*HttpRequestBuilder) WithProgressInterval ¶ added in v0.1.50
func (builder *HttpRequestBuilder) WithProgressInterval(progressInterval int64) *HttpRequestBuilder
func (*HttpRequestBuilder) WithProgressListener ¶ added in v0.1.50
func (builder *HttpRequestBuilder) WithProgressListener(progressListener progress.Listener) *HttpRequestBuilder
func (*HttpRequestBuilder) WithSigningAlgorithm ¶ added in v0.1.61
func (builder *HttpRequestBuilder) WithSigningAlgorithm(signingAlgorithm algorithm.SigningAlgorithm) *HttpRequestBuilder
Click to show internal directories.
Click to hide internal directories.