Versions in this module Expand all Collapse all v0 v0.12.2 Apr 12, 2017 Changes in this version + type HTTP struct + func (*HTTP) Request(ctx context.Context, method, url string, args ...goja.Value) (*HTTPResponse, 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) + type HTTPResponse struct + Body string + Headers map[string]string + Status int + Timings HTTPResponseTimings + URL string + func (res *HTTPResponse) Html(selector ...string) html.Selection + func (res *HTTPResponse) Json() goja.Value + type HTTPResponseTimings struct + Blocked float64 + Connecting float64 + Duration float64 + LookingUp float64 + Receiving float64 + Sending float64 + Waiting float64