The HttpService class, added in version 0.122, inherits from Instance. It cannot be instantiated. HTTP requests were enabled on December 12, 2013.[1]
Properties
Determines whether or not in-experience HTTP requests are enabled.
- Category: Data.
- Write security: LocalUserSecurity.
- Serialization: can save and load.
- Thread safety: read safe
Methods
CreateWebStreamClient(streamClientType: WebStreamClientType, requestOptions: Dictionary): WebStreamClient
This class member is missing documentation. Create or add to its subpage at Class:HttpService/CreateWebStreamClient.
CreateWebStreamClientInternal(streamClientType: WebStreamClientType, requestOptions: Dictionary): WebStreamClient
This class member is missing documentation. Create or add to its subpage at Class:HttpService/CreateWebStreamClientInternal.
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
GenerateGUID(wrapInCurlyBraces: bool = true): string
Parameters| Name | Type | Default | Description |
|---|
| wrapInCurlyBraces | bool | true | Whether or not to wrap the newly-generated GUID in curly braces. |
Generates a GUID.
Parameters| Name | Type | Default |
|---|
| url | Variant | |
| nocache | bool | false |
| headers | Variant | |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
Parameters| Name | Type |
|---|
| key | string |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
JSONDecode(input: string): Variant
Parameters| Name | Type |
|---|
| input | string |
JSONDecodeAsync(input: string): Variant
This class member is missing documentation. Create or add to its subpage at Class:HttpService/JSONDecodeAsync.
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
JSONEncode(input: Variant): string
This method converts the provided table into a JSON table via a string.
Parameters| Name | Type |
|---|
| input | Variant |
JSONEncodeAsync(obj: Variant): string
This class member is missing documentation. Create or add to its subpage at Class:HttpService/JSONEncodeAsync.
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
Parameters| Name | Type | Default |
|---|
| url | Variant | |
| data | string | |
| content_type | HttpContentType | ApplicationJson |
| compress | bool | false |
| headers | Variant | |
RequestAsync(requestOptions: Dictionary): Dictionary
Parameters| Name | Type |
|---|
| requestOptions | Dictionary |
Parameters| Name | Type |
|---|
| options | Dictionary |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
Parameters| Name | Type |
|---|
| enabled | bool |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
UrlEncode(input: string): string
Parameters| Name | Type |
|---|
| input | string |
External links[]
References[]