HttpClient Class
The Http Client can be used to make HTTP requests to external services.
Syntax
Member Details
Request Method
Performs a HTTP request.
SyntaxParameters
url
The url. It may include parameters, but they must be url-encoded.
handler
The event handler to be called when the request is complete
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Request Method
Performs a HTTP request.
SyntaxParameters
url
The url. It may include parameters, but they must be url-encoded.
requestOptions
The request options struct
handler
The event handler to be called when the request is complete
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
HttpClient.RequestData Class
Syntax
Member Details
Response Property
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
ToString Method
A string representation of this object.
SyntaxReturns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
HttpRequestOptions Struct
Syntax
[Sansar.Script.Interface] public struct HttpRequestOptions
Member Details
Body Field
Syntax
RemarksMay be null.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
DisableRedirect Field
Disable automatic redirects.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Method Field
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Parameters Field
Request parameters.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
HttpResponse Struct
Syntax
[Sansar.Script.Interface] public struct HttpResponse
Remarks
Documentation for this section has not yet been entered.
Requirements
Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Members
Public Fields
Member Details
Body Field
The response body.
Syntax
RemarksDocumentation for this section has not yet been entered.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Headers Field
The headers from the response
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Status Field
The status code returned by the remote server.
Syntax
RemarksDocumentation for this section has not yet been entered.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Last updated