/ fm / liveswitch / HttpWebRequestSender
Class: HttpWebRequestSender
fm.liveswitch.HttpWebRequestSender
An HTTP web request sender.
Hierarchy
-
↳ HttpWebRequestSender
Table of contents
Constructors
Methods
- fmliveswitchHttpWebRequestSenderInit
- getDisableCors
- getDisableJsonp
- getDisablePostMessage
- getDynamicProperties
- getDynamicValue
- getForceJsonp
- getTypeString
- setDisableCors
- setDisableJsonp
- setDisablePostMessage
- setDynamicValue
- setForceJsonp
- unsetDynamicValue
Constructors
constructor
+ new HttpWebRequestSender(): HttpWebRequestSender
Returns: HttpWebRequestSender
Inherited from: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:28
Methods
fmliveswitchHttpWebRequestSenderInit
▸ Private
fmliveswitchHttpWebRequestSenderInit(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:22
getDisableCors
▸ getDisableCors(): boolean
Gets a value indicating whether to disable the cross-origin resource sharing (CORS) transport.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:48
getDisableJsonp
▸ getDisableJsonp(): boolean
Gets a value indicating whether to disable the JSON-P transport.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:60
getDisablePostMessage
▸ getDisablePostMessage(): boolean
Gets a value indicating whether to disable the postMessage transport.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:72
getDynamicProperties
▸ getDynamicProperties(): Hash<string, Object>
Gets all dynamic properties on this instance.
Returns: Hash<string, Object>
Inherited from: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:37
getDynamicValue
▸ getDynamicValue(key
: string): Object
Gets a property value from the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: Object
The stored value, if found; otherwise null.
Inherited from: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:58
getForceJsonp
▸ getForceJsonp(): boolean
Gets a value indicating whether to force the JSON-P transport.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:84
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:10
setDisableCors
▸ setDisableCors(value
: boolean): void
Sets a value indicating whether to disable the cross-origin resource sharing (CORS) transport.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:96
setDisableJsonp
▸ setDisableJsonp(value
: boolean): void
Sets a value indicating whether to disable the JSON-P transport.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:108
setDisablePostMessage
▸ setDisablePostMessage(value
: boolean): void
Sets a value indicating whether to disable the postMessage transport.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:123
setDynamicValue
▸ setDynamicValue(key
: string, value
: Object): void
Sets a property value in the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
value |
Object | The property value. This can be any object that needs to be stored for future use. |
Returns: void
Inherited from: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:95
setForceJsonp
▸ setForceJsonp(value
: boolean): void
Sets a value indicating whether to force the JSON-P transport.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HttpWebRequestSender.ts:135
unsetDynamicValue
▸ unsetDynamicValue(key
: string): boolean
Removes a property value from the local cache. Returns true if the value was removed and returns false otherwise.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: boolean
true
if the value was removed; otherwise, false
.
Inherited from: Dynamic
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:122