Documentation ¶
Index ¶
- type HTTPUtil
- func (_m *HTTPUtil) DeleteJSON(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) DeleteXML(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) GetBasicAuth(r *http.Request) (string, string)
- func (_m *HTTPUtil) GetBodyJSON(r *http.Request, v interface{}) error
- func (_m *HTTPUtil) GetBodyXML(r *http.Request, v interface{}) error
- func (_m *HTTPUtil) GetJSON(ctx context.Context, url string, headers map[string]string, res interface{}) error
- func (_m *HTTPUtil) GetParam(r *http.Request, name string) string
- func (_m *HTTPUtil) GetParamBool(r *http.Request, name string) bool
- func (_m *HTTPUtil) GetParamInt(r *http.Request, name string) (int, error)
- func (_m *HTTPUtil) GetXML(ctx context.Context, url string, headers map[string]string, res interface{}) error
- func (_m *HTTPUtil) PostJSON(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) PostXML(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) PutJSON(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) PutXML(ctx context.Context, url string, headers map[string]string, req interface{}, ...) error
- func (_m *HTTPUtil) Request(ctx context.Context, method string, url string, headers map[string]string, ...) (*http.Response, error)
- func (_m *HTTPUtil) RequestJSON(ctx context.Context, method string, url string, headers map[string]string, ...) error
- func (_m *HTTPUtil) RequestXML(ctx context.Context, method string, url string, headers map[string]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPUtil ¶
HTTPUtil is an autogenerated mock type for the HTTPUtil type
func (*HTTPUtil) DeleteJSON ¶
func (_m *HTTPUtil) DeleteJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
DeleteJSON provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) DeleteXML ¶
func (_m *HTTPUtil) DeleteXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
DeleteXML provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) GetBasicAuth ¶
GetBasicAuth provides a mock function with given fields: r
func (*HTTPUtil) GetBodyJSON ¶
GetBodyJSON provides a mock function with given fields: r, v
func (*HTTPUtil) GetBodyXML ¶
GetBodyXML provides a mock function with given fields: r, v
func (*HTTPUtil) GetJSON ¶
func (_m *HTTPUtil) GetJSON(ctx context.Context, url string, headers map[string]string, res interface{}) error
GetJSON provides a mock function with given fields: ctx, url, headers, res
func (*HTTPUtil) GetParamBool ¶
GetParamBool provides a mock function with given fields: r, name
func (*HTTPUtil) GetParamInt ¶
GetParamInt provides a mock function with given fields: r, name
func (*HTTPUtil) GetXML ¶
func (_m *HTTPUtil) GetXML(ctx context.Context, url string, headers map[string]string, res interface{}) error
GetXML provides a mock function with given fields: ctx, url, headers, res
func (*HTTPUtil) PostJSON ¶
func (_m *HTTPUtil) PostJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
PostJSON provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) PostXML ¶
func (_m *HTTPUtil) PostXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
PostXML provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) PutJSON ¶
func (_m *HTTPUtil) PutJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
PutJSON provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) PutXML ¶
func (_m *HTTPUtil) PutXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error
PutXML provides a mock function with given fields: ctx, url, headers, req, res
func (*HTTPUtil) Request ¶
func (_m *HTTPUtil) Request(ctx context.Context, method string, url string, headers map[string]string, body io.Reader) (*http.Response, error)
Request provides a mock function with given fields: ctx, method, url, headers, body