/ fm / liveswitch / HttpWebRequestTransfer
Class: HttpWebRequestTransfer
fm.liveswitch.HttpWebRequestTransfer
Hierarchy
-
↳ HttpWebRequestTransfer
Table of contents
Constructors
Properties
- _corsFailCache
- _corsSuccessCache
- _disableCors
- _disableJsonp
- _disablePostMessage
- _forceJsonp
- _pmFailCache
- _pmSuccessCache
- getPlatformCode
Methods
- getTypeString
- process
- send
- sendAsync
- sendBinary
- sendBinaryAsync
- sendInternal
- sendText
- sendTextAsync
- shutdown
- addOnSendFinish
- addOnSendStart
- addQueryToUrl
- canCors
- canPostMessage
- getDisableCors
- getDisableJsonp
- getDisablePostMessage
- getForceJsonp
- getRandomWildcardCharacter
- getWildcardCharacters
- removeOnSendFinish
- removeOnSendStart
- replaceWildcards
- setDisableCors
- setDisableJsonp
- setDisablePostMessage
- setForceJsonp
- setWildcardCharacters
Constructors
constructor
+ new HttpWebRequestTransfer(): HttpWebRequestTransfer
Returns: HttpWebRequestTransfer
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:15
Properties
_corsFailCache
▪ Private
Static
_corsFailCache: Hash<string, boolean>
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:8
_corsSuccessCache
▪ Private
Static
_corsSuccessCache: Hash<string, boolean>
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:9
_disableCors
▪ Private
Static
_disableCors: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:12
_disableJsonp
▪ Private
Static
_disableJsonp: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:14
_disablePostMessage
▪ Private
Static
_disablePostMessage: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:13
_forceJsonp
▪ Private
Static
_forceJsonp: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:15
_pmFailCache
▪ Private
Static
_pmFailCache: Hash<string, boolean>
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:10
_pmSuccessCache
▪ Private
Static
_pmSuccessCache: Hash<string, boolean>
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:11
getPlatformCode
▪ Static
getPlatformCode: () => string
Type declaration:
▸ (): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:19
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:19
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:5
process
▸ process(requestArgs
: HttpRequestArgs, callback
: IAction1<HttpResponseArgs>): HttpResponseArgs
Parameters:
Name | Type |
---|---|
requestArgs |
HttpRequestArgs |
callback |
IAction1<HttpResponseArgs> |
Returns: HttpResponseArgs
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:75
send
▸ send(requestArgs
: HttpRequestArgs): HttpResponseArgs
Sends a request synchronously.
Parameters:
Name | Type | Description |
---|---|---|
requestArgs |
HttpRequestArgs | The request parameters. |
Returns: HttpResponseArgs
The resulting response.
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:296
sendAsync
▸ sendAsync(requestArgs
: HttpRequestArgs, callback
: IAction1<HttpResponseArgs>): void
Sends a request asynchronously.
Parameters:
Name | Type | Description |
---|---|---|
requestArgs |
HttpRequestArgs | The request parameters. |
callback |
IAction1<HttpResponseArgs> | The callback to execute with the resulting response. |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:323
sendBinary
▸ sendBinary(requestArgs
: HttpRequestArgs): HttpResponseArgs
Parameters:
Name | Type |
---|---|
requestArgs |
HttpRequestArgs |
Returns: HttpResponseArgs
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:72
sendBinaryAsync
▸ sendBinaryAsync(requestArgs
: HttpRequestArgs, callback
: IAction1<HttpResponseArgs>): void
Parameters:
Name | Type |
---|---|
requestArgs |
HttpRequestArgs |
callback |
IAction1<HttpResponseArgs> |
Returns: void
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:67
sendInternal
▸ sendInternal(fn
: IAction1<HttpWebRequestSendOptions>, cors
: boolean, pm
: boolean, requestArgs
: HttpRequestArgs, callback
: IAction1<HttpResponseArgs>): HttpResponseArgs
Parameters:
Name | Type |
---|---|
fn |
IAction1<HttpWebRequestSendOptions> |
cors |
boolean |
pm |
boolean |
requestArgs |
HttpRequestArgs |
callback |
IAction1<HttpResponseArgs> |
Returns: HttpResponseArgs
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:114
sendText
▸ sendText(requestArgs
: HttpRequestArgs): HttpResponseArgs
Parameters:
Name | Type |
---|---|
requestArgs |
HttpRequestArgs |
Returns: HttpResponseArgs
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:64
sendTextAsync
▸ sendTextAsync(requestArgs
: HttpRequestArgs, callback
: IAction1<HttpResponseArgs>): void
Parameters:
Name | Type |
---|---|
requestArgs |
HttpRequestArgs |
callback |
IAction1<HttpResponseArgs> |
Returns: void
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:59
shutdown
▸ shutdown(): void
Returns: void
Overrides: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:237
addOnSendFinish
▸ Static
addOnSendFinish(value
: IAction1<HttpSendFinishArgs>): void
Adds a handler that is raised before an HTTP request is sent.
Parameters:
Name | Type |
---|---|
value |
IAction1<HttpSendFinishArgs> |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:42
addOnSendStart
▸ Static
addOnSendStart(value
: IAction1<HttpSendStartArgs>): void
Adds a handler that is raised before an HTTP request is sent.
Parameters:
Name | Type |
---|---|
value |
IAction1<HttpSendStartArgs> |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:55
addQueryToUrl
▸ Static
addQueryToUrl(url
: string, key
: string): string
Escapes and adds a query parameter as a key/empty-value pair to a URL.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL with the query to which the key/value should be added. |
key |
string | The key of the query parameter to add. |
Returns: string
The original URL with the query parameter added.
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:71
▸ Static
addQueryToUrl(url
: string, key
: string, value
: string): string
Escapes and adds a query parameter as a key/value pair to a URL.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL with the query to which the key/value should be added. |
key |
string | The key of the query parameter to add. |
value |
string | The value of the query parameter to add. |
Returns: string
The original URL with the query parameter added.
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:81
canCors
▸ Static
canCors(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:46
canPostMessage
▸ Static
canPostMessage(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:49
getDisableCors
▸ Static
getDisableCors(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:25
getDisableJsonp
▸ Static
getDisableJsonp(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:37
getDisablePostMessage
▸ Static
getDisablePostMessage(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:31
getForceJsonp
▸ Static
getForceJsonp(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:43
getRandomWildcardCharacter
▸ Static
getRandomWildcardCharacter(): string
Gets a random wildcard character.
Returns: string
A random wildcard character.
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:111
getWildcardCharacters
▸ Static
getWildcardCharacters(): string
Gets the wildcard characters used to replace asterisks in ReplaceWildcards.
Returns: string
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:127
removeOnSendFinish
▸ Static
removeOnSendFinish(value
: IAction1<HttpSendFinishArgs>): void
Removes a handler that is raised before an HTTP request is sent.
Parameters:
Name | Type |
---|---|
value |
IAction1<HttpSendFinishArgs> |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:140
removeOnSendStart
▸ Static
removeOnSendStart(value
: IAction1<HttpSendStartArgs>): void
Removes a handler that is raised before an HTTP request is sent.
Parameters:
Name | Type |
---|---|
value |
IAction1<HttpSendStartArgs> |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:153
replaceWildcards
▸ Static
replaceWildcards(url
: string): string
Replaces asterisks in URLs with characters from WildcardCharacters.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL with asterisks. |
Returns: string
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:168
setDisableCors
▸ Static
setDisableCors(disableCors
: boolean): void
Parameters:
Name | Type |
---|---|
disableCors |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:22
setDisableJsonp
▸ Static
setDisableJsonp(disableJsonp
: boolean): void
Parameters:
Name | Type |
---|---|
disableJsonp |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:34
setDisablePostMessage
▸ Static
setDisablePostMessage(disablePostMessage
: boolean): void
Parameters:
Name | Type |
---|---|
disablePostMessage |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:28
setForceJsonp
▸ Static
setForceJsonp(forceJsonp
: boolean): void
Parameters:
Name | Type |
---|---|
forceJsonp |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:40
setWildcardCharacters
▸ Static
setWildcardCharacters(value
: string): void
Sets the wildcard characters used to replace asterisks in ReplaceWildcards.
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Inherited from: HttpTransfer
Defined in: Generated/TypeScript/fm.liveswitch/HttpTransfer.ts:182