All Bundles
HttpClient
HTTP client
Operations
New
Default constructor
New()
AddHeader
Adds a HTTP request header
method : public : AddHeader(name:String, value:String) ~ Nil
Parameters
Name | Type | Description |
---|
name | String | header name |
value | String | header value |
EnableCookies
Sets cookie support
method : public : EnableCookies(cookies_enabled:Bool) ~ Nil
Parameters
Name | Type | Description |
---|
cookies_enabled | Bool | true if cookies are enabled, false otherwise |
Get
Performs a HTTP GET
method : public : Get(url:Web.HTTP.Url) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
Return
Type | Description |
---|
Byte[] | string read |
Performs a HTTP GET
method : public : Get(url:Web.HTTP.Url, content_type:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
content_type | String | content type |
Return
Type | Description |
---|
Byte[] | string read |
GetCookies
Gets the cookies
method : public : GetCookies() ~ Vector<Cookie>
Return
GetRequestHeaders
Gets the HTTP request headers
method : public : GetRequestHeaders() ~ Hash<String,String>
Return
GetResponseHeaders
Gets the HTTP response headers
method : public : GetResponseHeaders() ~ Hash<String,String>
Return
Post
Performs a HTTP POST
method : public : Post(url:Web.HTTP.Url, data:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
data | String | data to post |
Return
Type | Description |
---|
Byte[] | string read |
Performs a HTTP POST
method : public : Post(url:Web.HTTP.Url, data:String, content_type:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
data | String | data to post |
content_type | String | content type |
Return
Type | Description |
---|
Byte[] | string read |
QuickGet
Performs a HTTP GET and returns results as a String
function : QuickGet(url:Web.HTTP.Url) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
Return
Type | Description |
---|
Byte[] | output buffer |
Performs a HTTP GET and returns results as a String
function : QuickGet(url:Web.HTTP.Url, headers:Map<String,String>) ~ Byte[]
Parameters
Return
Type | Description |
---|
Byte[] | output buffer |
Performs a HTTP GET and returns results as a String
function : QuickGet(url:Web.HTTP.Url, content_type:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
content_type | String | content type |
Return
Type | Description |
---|
Byte[] | output buffer |
Performs a HTTP GET and returns results as a String
function : QuickGet(url:Web.HTTP.Url, content_type:String, headers:Map<String,String>) ~ Byte[]
Parameters
Return
Type | Description |
---|
Byte[] | output buffer |
QuickPost
Performs a HTTP POST
function : QuickPost(url:Web.HTTP.Url, data:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
data | String | data to post |
Return
Type | Description |
---|
Byte[] | read strings |
Performs a HTTPS POST
function : QuickPost(url:Web.HTTP.Url, data:String, content_type:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
url | Url | URL |
data | String | data to post |
content_type | String | content type |
Return
Type | Description |
---|
Byte[] | read strings |
Performs a HTTP POST
function : QuickPost(url:Web.HTTP.Url, data:String, content_type:String, headers:Map<String,String>) ~ Byte[]
Parameters
Return
Type | Description |
---|
Byte[] | read strings |
RemoveHeader
Removes a HTTP request header
method : public : RemoveHeader(name:String) ~ Nil
Parameters
Name | Type | Description |
---|
name | String | header name |
SetCookie
Sets a cookie
method : public : SetCookie(cookie:Cookie) ~ Nil
Parameters
Name | Type | Description |
---|
cookie | Cookie | cookie |