Release Notes for 343


#1

Notes for release 343


#2

Client Difference Log

API Changes

Added Class PresenceService
	Added YieldFunction PresenceService.GetUsersAsync [RobloxScriptSecurity]
Added Property Studio.UI Theme [StudioOnly]
Added YieldFunction HttpService.RequestAsync
Added Enum UITheme [StudioOnly]
	Added EnumItem UITheme.Light
	Added EnumItem UITheme.Dark

#3


#4

HttpService:RequestAsync

Is this what I think it is?


#5

Had the very same thought when I saw that


#6

Ohohoh, RequestAsync? Dark theme? Things are starting to look nice here.


#7

Is it just me, or does pressing ESC not work in studio (play solo and test server)?


#8

This is happening to me too.


#9

Found a bug report and a solution:


#10

“Fix an issue with mouse cursor locking in place when holding the right mouse button or middle mouse button down when the CameraType is Scriptable and Lua camera implementations are being used.”
feelsgoodman


#11

Notices studio dark theme isn’t under improvements.

For real though, at least it’s coming. Very happy with what’s to come.


#12

I think you mean


#13

Yup


#14

I’m a bit confused on RequestAsync’s function/purpose. Can anyone provide a use case?


#15

This thread might clarify:


#16

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.

HTTP Service fails to connect
#17
  • So are the other methods on track to deprecation?
  • Why is method a string? Aren’t get, post, put, patch, delete, and maybe a few more I forgot the only ones? Wouldn’t it be better as an Enum?

#18
  • Not sure at the moment, it’s certainly possible.
  • Maybe for non-standard methods? ¯\_(ツ)_/¯

#19

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.


#20

@CloneTrooper1019 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.