Documentation ¶
Index ¶
- func DELETE(ctx context.Context, args ...core.Value) (core.Value, error)
- func GET(ctx context.Context, args ...core.Value) (core.Value, error)
- func POST(ctx context.Context, args ...core.Value) (core.Value, error)
- func PUT(ctx context.Context, args ...core.Value) (core.Value, error)
- func REQUEST(ctx context.Context, args ...core.Value) (core.Value, error)
- func RegisterLib(ns core.Namespace) error
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DELETE ¶
DELETE makes a HTTP DELETE request. @param {Object} params - Request parameters. @param {String} params.url - Target url @param {Binary} params.body - Request data @param {Object} [params.headers] - HTTP headers @return {Binary} - Response in binary format
func GET ¶
GET makes a HTTP GET request. @param {Object | String} urlOrParam - Target url or parameters. @param {String} [param.url] - Target url or parameters. @param {Object} [param.headers] - HTTP headers @return {Binary} - Response in binary format
func POST ¶
POST makes a POST request. @param {Object} params - Request parameters. @param {String} params.url - Target url @param {Binary} params.body - Request data @param {Object} [params.headers] - HTTP headers @return {Binary} - Response in binary format
func PUT ¶
PUT makes a PUT HTTP request. @param {Object} params - Request parameters. @param {String} params.url - Target url @param {Binary} params.body - Request data @param {Object} [params.headers] - HTTP headers @return {Binary} - Response in binary format
func REQUEST ¶
REQUEST makes a HTTP request. @param {Object} params - Request parameters. @param {String} params.method - HTTP method @param {String} params.url - Target url @param {Binary} params.body - Request data @param {Object} [params.headers] - HTTP headers @return {Binary} - Response in binary format
func RegisterLib ¶
RegisterLib register `HTTP` namespace functions. @namespace HTTP