/ 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
▸ StaticaddOnSendFinish(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
▸ StaticaddOnSendStart(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
▸ StaticaddQueryToUrl(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
▸ StaticaddQueryToUrl(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
▸ StaticcanCors(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:46
canPostMessage
▸ StaticcanPostMessage(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:49
getDisableCors
▸ StaticgetDisableCors(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:25
getDisableJsonp
▸ StaticgetDisableJsonp(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:37
getDisablePostMessage
▸ StaticgetDisablePostMessage(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:31
getForceJsonp
▸ StaticgetForceJsonp(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:43
getRandomWildcardCharacter
▸ StaticgetRandomWildcardCharacter(): 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
▸ StaticgetWildcardCharacters(): 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
▸ StaticremoveOnSendFinish(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
▸ StaticremoveOnSendStart(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
▸ StaticreplaceWildcards(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
▸ StaticsetDisableCors(disableCors: boolean): void
Parameters:
| Name | Type |
|---|---|
disableCors |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:22
setDisableJsonp
▸ StaticsetDisableJsonp(disableJsonp: boolean): void
Parameters:
| Name | Type |
|---|---|
disableJsonp |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:34
setDisablePostMessage
▸ StaticsetDisablePostMessage(disablePostMessage: boolean): void
Parameters:
| Name | Type |
|---|---|
disablePostMessage |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:28
setForceJsonp
▸ StaticsetForceJsonp(forceJsonp: boolean): void
Parameters:
| Name | Type |
|---|---|
forceJsonp |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestTransfer.ts:40
setWildcardCharacters
▸ StaticsetWildcardCharacters(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