Notices studio dark theme isn’t under improvements.
For real though, at least it’s coming. Very happy with what’s to come.
Notices studio dark theme isn’t under improvements.
For real though, at least it’s coming. Very happy with what’s to come.
Yup
I’m a bit confused on RequestAsync’s function/purpose. Can anyone provide a use case?
This thread might clarify:
Previously you could only use GET/POST methods in the HttpService. It wasn’t fully qualified for communicating with RESTful web services. RequestAsync aims to solve this problem!
The function takes a dictionary which accepts the following fields:
Name | Type | Required | Description |
---|---|---|---|
Url | string | Yes | The URL being targetted in this request. |
Method | string | No | The HTTP method being used by this request. |
Headers | dictionary | No | A dictionary of headers to be used with this request. Accepts pretty much any HTTP header (except for Content-Length ).
|
Body | string | No | The body of content being submitted in this request. Can be any string, including binary data. Must be excluded when using the GET/HEAD methods.
|
The function returns a dictionary containing the following fields:
Name | Type | Description |
---|---|---|
Success | bool | The success status of the request. |
StatusCode | int | The code identifying the status of the response. |
StatusMessage | string | The status message that was sent back. |
Headers | dictionary | A dictionary of headers that were set in this response. |
Body | Variant | The body of content being received back from the server. |
Not only are there non-standard headers, but headers can be added to the standard at any time, and I don’t want to have to wait for a Roblox update in order to use them.
@Maximum_ADHD and cowbear16
Any ETA for that sweet HttpService:RequestAsync? I’m assuming a SoonTM, but hey … have to see considering how useful this simple API change will be.
It should be enabled already.
wait wot?
On mobile so can’t test right away, but claims on the Wiki it’s not. Will check asap on desktop
In the past you could not submit requests to the Roblox website, but it appears you now can with RequestAsync, is this intentional or will it be removed?
I’d assume since we can set our own Headers and have a fully functional API now that it should no longer be a problem. In the past, I think it had to due with the fact we couldn’t modify headers and thus the requests were “authenticated” cause they came from the ROBLOX Game Servers. Hopefully, this update will solve that …
Did I guess right?
This would suggest otherwise
Guess we’ll find out. It is 2018 now
Oh my, true support for the REST paradigm? This is wonderful. Time for me to redo some very sketchy simulations of delete requests using a post command…
We aren’t really updating the wiki anymore.
The documentation should be available on robloxdev.com soon.
Also I believe we had to disable it because of an exploit.
Is there an ETA on when this will be reenabled? A feature of mine I’ve been wanting to implement for a long time into a project heavily depends on this. I was hoping for a weekend release, rip that I guess.
A table/dictionary for… four arguments??? Who makes this stuff…?
I really don’t intend to sound rude or question people who definitely get paid more than me to work on this stuff… but the API is so all over the place with each update that it honestly just gets confusing. Arguments should be supplied to you as arguments like the other HttpService methods, not a table of arguments!