RemoteServiceHttpResponse
ClassThe response returned by a RemoteServiceHttpRequest call.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: fully supported
- Camera Kit Mobile: fully supported
- SnapchatNot supported — Available on SPECS and Camera Kit only
- SPECSFully supported
- Camera Kit WebFully supported
- Camera Kit MobileFully supported
Since Lens Scripting v271
The response returned by a RemoteServiceHttpRequest call.
Index
Extends
Properties
body
readonlybody:string
SPECSCamera Kit
The body of the response.
Since
Lens Scripting Version 271
contentType
readonlycontentType:string
SPECSCamera Kit
the content type of the response.
Since
Lens Scripting Version 271
headers
readonlyheaders:object
SPECSCamera Kit
The headers of the response.
Index Signature
[key: string]: string
Since
Lens Scripting Version 271
statusCode
readonlystatusCode:number
SPECSCamera Kit
The http response status code.
Since
Lens Scripting Version 271
Methods
asResource()
asResource():
DynamicResource
SPECSCamera Kit
Get the result as a DynamicResource to be used with RemoteMediaModule.
Returns
Since
Lens Scripting Version 271
getHeader()
getHeader(
name):string
SPECSCamera Kit
Get the header of the response.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
Since
Lens Scripting Version 271
getTypeName()
staticgetTypeName():TypeName<RemoteServiceHttpResponse>
SPECSCamera Kit
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<RemoteServiceHttpResponse>
Since
Lens Scripting Version 271
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean