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. @params params (Object) - request parameters.
- url (String) - Target url
- body (Binary) - POST data
- headers (Object) optional - HTTP headers
func GET ¶
GET makes a HTTP GET request. @params url or (String) - target url or parameters.
- url (String) - Target url
- headers (Object) optional - HTTP headers
func POST ¶
POST makes a POST request. @params params (Object) - request parameters.
- url (String) - Target url
- body (Binary) - POST data
- headers (Object) optional - HTTP headers
func PUT ¶
PUT makes a PUT HTTP request. @params params (Object) - request parameters.
- url (String) - Target url.
- body (Binary) - POST data.
- headers (Object) optional - HTTP headers.
func REQUEST ¶
REQUEST makes a HTTP request. @params params (Object) - request parameters.
- method (String) - HTTP method.
- url (String) - Target url.
- body (Binary) - POST data.
- headers (Object) optional - HTTP headers.
func RegisterLib ¶
RegisterLib register `HTTP` namespace functions.
Types ¶
Click to show internal directories.
Click to hide internal directories.