Documentation ¶
Index ¶
- Constants
- type HTTPResponse
- type HttpClient
- func (h *HttpClient) Constructor(call goja.ConstructorCall) *goja.Object
- func (c *HttpClient) Del(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Get(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Head(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Options(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Patch(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Post(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) Put(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- func (c *HttpClient) WithTrace(fn HttpFunc, url goja.Value, args ...goja.Value) (*HTTPResponse, error)
- type HttpFunc
- type HttpRequestFunc
- type NewFunc
Constants ¶
View Source
const ( TraceID = "trace_id" TestID = "test_id" ShouldWait = "should_wait" VariableName = "variable_name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(vu modules.VU) *HttpClient
func (*HttpClient) Constructor ¶
func (h *HttpClient) Constructor(call goja.ConstructorCall) *goja.Object
func (*HttpClient) Del ¶
func (c *HttpClient) Del(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Get ¶
func (c *HttpClient) Get(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Head ¶
func (c *HttpClient) Head(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Options ¶
func (c *HttpClient) Options(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Patch ¶
func (c *HttpClient) Patch(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Post ¶
func (c *HttpClient) Post(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) Put ¶
func (c *HttpClient) Put(url goja.Value, args ...goja.Value) (*HTTPResponse, error)
func (*HttpClient) WithTrace ¶
func (c *HttpClient) WithTrace(fn HttpFunc, url goja.Value, args ...goja.Value) (*HTTPResponse, error)
type HttpRequestFunc ¶
Click to show internal directories.
Click to hide internal directories.