HttpRequest

Overview

Request class for HTTP

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

 

constructor (not nullable Url, HttpRequestMode)

 

constructor(aUrl: not nullable Url; aMode: HttpRequestMode)

 

HttpRequest(Url! aUrl, HttpRequestMode aMode)

 

init(_ aUrl: Url, _ aMode: HttpRequestMode)

 

HttpRequest(Url aUrl, HttpRequestMode aMode)

 

Sub New(aUrl As Url, aMode As HttpRequestMode)

Parameters:

  • aUrl:
  • aMode:

constructor (not nullable String, HttpRequestMode)

 

constructor(aUrlString: not nullable String; aMode: HttpRequestMode)

 

HttpRequest(String! aUrlString, HttpRequestMode aMode)

 

init(_ aUrlString: String, _ aMode: HttpRequestMode)

 

HttpRequest(String aUrlString, HttpRequestMode aMode)

 

Sub New(aUrlString As String, aMode As HttpRequestMode)

Parameters:

  • aUrlString:
  • aMode:

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

Authentication

 

property Authentication: IHttpAuthentication read write;

 

IHttpAuthentication Authentication { get; set; }

 

var Authentication: IHttpAuthentication { get{} set{} }

 

IHttpAuthentication Authentication { __get; __set; }

 

Property Authentication() As IHttpAuthentication

Content

Content of this request, if applicable for this method.

 

property Content: nullable HttpRequestContent read write;

 

HttpRequestContent? Content { get; set; }

 

// .NET, .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 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>

Mode

Get or set the request mode (GET, POST etc)

 

property Mode: HttpRequestMode read write;

 

HttpRequestMode Mode { get; set; }

 

var Mode: HttpRequestMode { get{} set{} }

 

HttpRequestMode Mode { __get; __set; }

 

Property Mode() As HttpRequestMode

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 Toffee, ToffeeV2

 

func ToString() -> String

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

 

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

Authentication

 

property Authentication: IHttpAuthentication read write;

 

IHttpAuthentication Authentication { get; set; }

 

var Authentication: IHttpAuthentication { get{} set{} }

 

IHttpAuthentication Authentication { __get; __set; }

 

Property Authentication() As IHttpAuthentication

Content

Content of this request, if applicable for this method.

 

property Content: nullable HttpRequestContent read write;

 

HttpRequestContent? Content { get; set; }

 

// .NET, .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 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>

Mode

Get or set the request mode (GET, POST etc)

 

property Mode: HttpRequestMode read write;

 

HttpRequestMode Mode { get; set; }

 

var Mode: HttpRequestMode { get{} set{} }

 

HttpRequestMode Mode { __get; __set; }

 

Property Mode() As HttpRequestMode

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

 

constructor (not nullable Url, HttpRequestMode)

 

constructor(aUrl: not nullable Url; aMode: HttpRequestMode)

 

HttpRequest(Url! aUrl, HttpRequestMode aMode)

 

init(_ aUrl: Url, _ aMode: HttpRequestMode)

 

HttpRequest(Url aUrl, HttpRequestMode aMode)

 

Sub New(aUrl As Url, aMode As HttpRequestMode)

Parameters:

  • aUrl:
  • aMode:

constructor (not nullable String, HttpRequestMode)

 

constructor(aUrlString: not nullable String; aMode: HttpRequestMode)

 

HttpRequest(String! aUrlString, HttpRequestMode aMode)

 

init(_ aUrlString: String, _ aMode: HttpRequestMode)

 

HttpRequest(String aUrlString, HttpRequestMode aMode)

 

Sub New(aUrlString As String, aMode As HttpRequestMode)

Parameters:

  • aUrlString:
  • aMode:

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 Toffee, ToffeeV2

 

func ToString() -> String