Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpMethod ¶
type HttpMethod string
const ( HttpMethodGet HttpMethod = "GET" HttpMethodPost HttpMethod = "POST" HttpMethodPut HttpMethod = "PUT" HttpMethodDelete HttpMethod = "DELETE" HttpMethodPatch HttpMethod = "PATCH" HttpMethodOptions HttpMethod = "OPTIONS" HttpMethodHead HttpMethod = "HEAD" HttpMethodConnect HttpMethod = "CONNECT" HttpMethodTrace HttpMethod = "TRACE" )
func NewHttpMethodFromString ¶
func NewHttpMethodFromString(s string) (HttpMethod, error)
func (HttpMethod) Ptr ¶
func (h HttpMethod) Ptr() *HttpMethod
type RequestInfo ¶
type RequestInfo struct { BaseUrl string `json:"baseUrl" url:"baseUrl"` Path string `json:"path" url:"path"` Method HttpMethod `json:"method" url:"method"` PathParams map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"` QueryParams map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"` HeaderParams map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"` BodyParams *string `json:"bodyParams,omitempty" url:"bodyParams,omitempty"` FormParams map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"` MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"` StatusCode *int `json:"statusCode,omitempty" url:"statusCode,omitempty"` ResponseBody *string `json:"responseBody,omitempty" url:"responseBody,omitempty"` ResponseHeaders map[string]string `json:"responseHeaders,omitempty" url:"responseHeaders,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` Timestamp time.Time `json:"timestamp" url:"timestamp"` // contains filtered or unexported fields }
func (*RequestInfo) GetExtraProperties ¶
func (r *RequestInfo) GetExtraProperties() map[string]interface{}
func (*RequestInfo) MarshalJSON ¶
func (r *RequestInfo) MarshalJSON() ([]byte, error)
func (*RequestInfo) String ¶
func (r *RequestInfo) String() string
func (*RequestInfo) UnmarshalJSON ¶
func (r *RequestInfo) UnmarshalJSON(data []byte) error
type RequestParams ¶
type RequestParams struct { PathParams map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"` QueryParams map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"` HeaderParams map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"` BodyParams string `json:"bodyParams" url:"bodyParams"` FormParams map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"` MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"` // contains filtered or unexported fields }
func (*RequestParams) GetExtraProperties ¶
func (r *RequestParams) GetExtraProperties() map[string]interface{}
func (*RequestParams) String ¶
func (r *RequestParams) String() string
func (*RequestParams) UnmarshalJSON ¶
func (r *RequestParams) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.