WklHttpResult
WklHttpResult class
Signature
Dim myWklHttpResult As WklHttpResult
Summary
The answer to a web request; stays valid after the event.
Parameters
None
Remarks
Not created directly; returned by other members of the library.
Code example
None
Inheritance
None
Text property
Signature
Property Get Text() As String
Summary
Gets the response text.
Parameters
None
Property value: String – Decoded by the charset of the answer, otherwise as UTF-8.
Remarks
Default member: it can be left out, as in myWklHttpResult(...) for myWklHttpResult.Text(...). Read-only.
Code example
None
Inheritance
Declared by WklHttpResult.
Status property
Signature
Property Get Status() As Long
Summary
Gets the HTTP status.
Parameters
None
Property value: Long – The status code.
Remarks
Read-only.
Code example
None
Inheritance
Declared by WklHttpResult.
Header property
Signature
Property Get Header(ByVal Name As String) As String
Summary
Gets a response header.
Parameters
| Name | Type | Optional | Default | Description |
|---|---|---|---|---|
Name | String | No | – | The header name. |
Property value: String – The value, or empty.
Remarks
Read-only.
Code example
None
Inheritance
Declared by WklHttpResult.
Headers property
Signature
Property Get Headers() As String
Summary
Gets all response headers.
Parameters
None
Property value: String – One “Name: value” per line.
Remarks
Read-only.
Code example
None
Inheritance
Declared by WklHttpResult.