Documentation ¶
Index ¶
- type HTTP
- func (http *HTTP) Batch(ctx context.Context, reqsV goja.Value) (goja.Value, error)
- func (http *HTTP) Del(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (http *HTTP) Get(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (http *HTTP) Head(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (http *HTTP) Patch(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (http *HTTP) Post(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (http *HTTP) Put(ctx context.Context, url string, args ...goja.Value) (*HTTPResponse, error)
- func (*HTTP) Request(ctx context.Context, method, url string, args ...goja.Value) (*HTTPResponse, error)
- type HTTPResponse
- type HTTPResponseTimings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct{}
type HTTPResponse ¶
type HTTPResponse struct { RemoteIP string RemotePort int URL string Status int Headers map[string]string Body string Timings HTTPResponseTimings Error string // contains filtered or unexported fields }
func (*HTTPResponse) Json ¶
func (res *HTTPResponse) Json() goja.Value
type HTTPResponseTimings ¶
type HTTPResponseTimings struct {
Duration, Blocked, LookingUp, Connecting, Sending, Waiting, Receiving float64
}
Click to show internal directories.
Click to hide internal directories.