Documentation ¶
Index ¶
- type DefaultHttpRequest
- 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) GetHeaderParams() map[string]string
- func (httpRequest *DefaultHttpRequest) GetMethod() string
- func (httpRequest *DefaultHttpRequest) GetPath() string
- func (httpRequest *DefaultHttpRequest) GetPathPrams() map[string]string
- func (httpRequest *DefaultHttpRequest) GetQueryParams() map[string]interface{}
- type HttpRequest
- type HttpRequestBuilder
- func (builder *HttpRequestBuilder) AddAutoFilledPathParam(key string, value string) *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(body interface{}) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithEndpoint(endpoint string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithMethod(method string) *HttpRequestBuilder
- func (builder *HttpRequestBuilder) WithPath(path string) *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) 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) 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) GetQueryParams ¶
func (httpRequest *DefaultHttpRequest) GetQueryParams() map[string]interface{}
type HttpRequest ¶
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) 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(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
Click to show internal directories.
Click to hide internal directories.