HttpRequest
Overview
Request class for HTTP
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
constructor (not nullable Url, HttpRequestMethod)
constructor(aUrl: not nullable Url; aMethod: HttpRequestMethod := HttpRequestMethod.Get)
HttpRequest(Url! aUrl, HttpRequestMethod aMethod = HttpRequestMethod.Get)
init(_ aUrl: Url, _ aMethod: HttpRequestMethod = HttpRequestMethod.Get)
HttpRequest(Url aUrl, HttpRequestMethod aMethod)
Sub New(aUrl As Url, aMethod As HttpRequestMethod = HttpRequestMethod.Get)
Parameters:
- aUrl:
- aMethod:
constructor (not nullable String, HttpRequestMethod)
constructor(aUrlString: not nullable String; aMethod: HttpRequestMethod := HttpRequestMethod.Get)
HttpRequest(String! aUrlString, HttpRequestMethod aMethod = HttpRequestMethod.Get)
init(_ aUrlString: String, _ aMethod: HttpRequestMethod = HttpRequestMethod.Get)
HttpRequest(String aUrlString, HttpRequestMethod aMethod)
Sub New(aUrlString As String, aMethod As HttpRequestMethod = HttpRequestMethod.Get)
Parameters:
- aUrlString:
- aMethod:
Accept
property Accept: String read write;
String Accept { get; set; }
var Accept: String { get{} set{} }
String Accept { __get; __set; }
Property Accept() As String
AllowCellularAccess
Allows this request to go through mobile networks instead of just wifi
property AllowCellularAccess: Boolean read write;
Boolean AllowCellularAccess { get; set; }
var AllowCellularAccess: Boolean { get{} set{} }
Boolean AllowCellularAccess { __get; __set; }
Property AllowCellularAccess() As Boolean
Authorization
property Authorization: IHttpAuthorization read write;
IHttpAuthorization Authorization { get; set; }
var Authorization: IHttpAuthorization { get{} set{} }
IHttpAuthorization Authorization { __get; __set; }
Property Authorization() As IHttpAuthorization
Content
Content of this request, if applicable for this method.
property Content: nullable HttpRequestContent read write;
HttpRequestContent? Content { get; set; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Content: HttpRequestContent? { get{} set{} }
// Toffee
var Content: HttpRequestContent { get{} set{} }
HttpRequestContent Content { __get; __set; }
Property Content() As HttpRequestContent?
ContentType
property ContentType: nullable String read write;
String? ContentType { get; set; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var ContentType: String? { get{} set{} }
// Toffee
var ContentType: String { get{} set{} }
String ContentType { __get; __set; }
Property ContentType() As String?
description override Toffee, ToffeeV2
Returns a string represnetnation fo this clas.
func description() -> NSString
FollowRedirects
Follow redirects in the request.
property FollowRedirects: Boolean read write;
Boolean FollowRedirects { get; set; }
var FollowRedirects: Boolean { get{} set{} }
Boolean FollowRedirects { __get; __set; }
Property FollowRedirects() As Boolean
Headers
Get the headers dictionary for this request.
property Headers: not nullable Dictionary<String, String> read;
Dictionary<String, String>! Headers { get; }
var Headers: Dictionary<String, String> { get{} }
Dictionary<String, String> Headers { __get; }
ReadOnly Property Headers() As Dictionary<String, String>
Method
property Method: HttpRequestMethod read write;
HttpRequestMethod Method { get; set; }
var Method: HttpRequestMethod { get{} set{} }
HttpRequestMethod Method { __get; __set; }
Property Method() As HttpRequestMethod
Mode
Get or set the request mode (GET, POST etc)
property Mode: HttpRequestMethod read write;
HttpRequestMethod Mode { get; set; }
var Mode: HttpRequestMethod { get{} set{} }
HttpRequestMethod Mode { __get; __set; }
Property Mode() As HttpRequestMethod
Timeout
Time for this request.
property Timeout: Double read write;
Double Timeout { get; set; }
var Timeout: Double { get{} set{} }
Double Timeout { __get; __set; }
Property Timeout() As Double
toString Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Returns a string represnetnation fo this clas.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString
Url
URL to send.
property Url: not nullable Url read write;
Url! Url { get; set; }
var Url: Url { get{} set{} }
Url Url { __get; __set; }
Property Url() As Url
UserAgent
property UserAgent: String read write;
String UserAgent { get; set; }
var UserAgent: String { get{} set{} }
String UserAgent { __get; __set; }
Property UserAgent() As String
VerifyUntrustedCertificate
property VerifyUntrustedCertificate: HttpVerifyUntrustedCertificateBlock read write;
HttpVerifyUntrustedCertificateBlock VerifyUntrustedCertificate { get; set; }
var VerifyUntrustedCertificate: HttpVerifyUntrustedCertificateBlock { get{} set{} }
HttpVerifyUntrustedCertificateBlock VerifyUntrustedCertificate { __get; __set; }
Property VerifyUntrustedCertificate() As HttpVerifyUntrustedCertificateBlock
Accept
property Accept: String read write;
String Accept { get; set; }
var Accept: String { get{} set{} }
String Accept { __get; __set; }
Property Accept() As String
AllowCellularAccess
Allows this request to go through mobile networks instead of just wifi
property AllowCellularAccess: Boolean read write;
Boolean AllowCellularAccess { get; set; }
var AllowCellularAccess: Boolean { get{} set{} }
Boolean AllowCellularAccess { __get; __set; }
Property AllowCellularAccess() As Boolean
Authorization
property Authorization: IHttpAuthorization read write;
IHttpAuthorization Authorization { get; set; }
var Authorization: IHttpAuthorization { get{} set{} }
IHttpAuthorization Authorization { __get; __set; }
Property Authorization() As IHttpAuthorization
Content
Content of this request, if applicable for this method.
property Content: nullable HttpRequestContent read write;
HttpRequestContent? Content { get; set; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Content: HttpRequestContent? { get{} set{} }
// Toffee
var Content: HttpRequestContent { get{} set{} }
HttpRequestContent Content { __get; __set; }
Property Content() As HttpRequestContent?
ContentType
property ContentType: nullable String read write;
String? ContentType { get; set; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var ContentType: String? { get{} set{} }
// Toffee
var ContentType: String { get{} set{} }
String ContentType { __get; __set; }
Property ContentType() As String?
FollowRedirects
Follow redirects in the request.
property FollowRedirects: Boolean read write;
Boolean FollowRedirects { get; set; }
var FollowRedirects: Boolean { get{} set{} }
Boolean FollowRedirects { __get; __set; }
Property FollowRedirects() As Boolean
Headers
Get the headers dictionary for this request.
property Headers: not nullable Dictionary<String, String> read;
Dictionary<String, String>! Headers { get; }
var Headers: Dictionary<String, String> { get{} }
Dictionary<String, String> Headers { __get; }
ReadOnly Property Headers() As Dictionary<String, String>
Method
property Method: HttpRequestMethod read write;
HttpRequestMethod Method { get; set; }
var Method: HttpRequestMethod { get{} set{} }
HttpRequestMethod Method { __get; __set; }
Property Method() As HttpRequestMethod
Mode
Get or set the request mode (GET, POST etc)
property Mode: HttpRequestMethod read write;
HttpRequestMethod Mode { get; set; }
var Mode: HttpRequestMethod { get{} set{} }
HttpRequestMethod Mode { __get; __set; }
Property Mode() As HttpRequestMethod
Timeout
Time for this request.
property Timeout: Double read write;
Double Timeout { get; set; }
var Timeout: Double { get{} set{} }
Double Timeout { __get; __set; }
Property Timeout() As Double
Url
URL to send.
property Url: not nullable Url read write;
Url! Url { get; set; }
var Url: Url { get{} set{} }
Url Url { __get; __set; }
Property Url() As Url
UserAgent
property UserAgent: String read write;
String UserAgent { get; set; }
var UserAgent: String { get{} set{} }
String UserAgent { __get; __set; }
Property UserAgent() As String
VerifyUntrustedCertificate
property VerifyUntrustedCertificate: HttpVerifyUntrustedCertificateBlock read write;
HttpVerifyUntrustedCertificateBlock VerifyUntrustedCertificate { get; set; }
var VerifyUntrustedCertificate: HttpVerifyUntrustedCertificateBlock { get{} set{} }
HttpVerifyUntrustedCertificateBlock VerifyUntrustedCertificate { __get; __set; }
Property VerifyUntrustedCertificate() As HttpVerifyUntrustedCertificateBlock
constructor (not nullable Url, HttpRequestMethod)
constructor(aUrl: not nullable Url; aMethod: HttpRequestMethod := HttpRequestMethod.Get)
HttpRequest(Url! aUrl, HttpRequestMethod aMethod = HttpRequestMethod.Get)
init(_ aUrl: Url, _ aMethod: HttpRequestMethod = HttpRequestMethod.Get)
HttpRequest(Url aUrl, HttpRequestMethod aMethod)
Sub New(aUrl As Url, aMethod As HttpRequestMethod = HttpRequestMethod.Get)
Parameters:
- aUrl:
- aMethod:
constructor (not nullable String, HttpRequestMethod)
constructor(aUrlString: not nullable String; aMethod: HttpRequestMethod := HttpRequestMethod.Get)
HttpRequest(String! aUrlString, HttpRequestMethod aMethod = HttpRequestMethod.Get)
init(_ aUrlString: String, _ aMethod: HttpRequestMethod = HttpRequestMethod.Get)
HttpRequest(String aUrlString, HttpRequestMethod aMethod)
Sub New(aUrlString As String, aMethod As HttpRequestMethod = HttpRequestMethod.Get)
Parameters:
- aUrlString:
- aMethod:
description override Toffee, ToffeeV2
Returns a string represnetnation fo this clas.
func description() -> NSString
toString Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Returns a string represnetnation fo this clas.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString