Services - Xeptix/framework GitHub Wiki
The framework adds and extends many services for a vast amount of completely optional features. Until you use GetService on a service, it doesn't start up, meaning only the services you trigger will run in your game.
* optional argument
Soon!
FrameworkService is the main service, which always starts as soon as the server is created. It currently is internal however future updates will add several useful things to this service.
Currently, all items are not displayed because they are all marked as internal. It's not recommended to use them.
FrameworkHttpService is a special internal sub-service of Framework Service.
Some items are not displayed because they are marked as internal. It's not recommended to use them.
Converts <table> into a proper query string.
Example:
print(game.FrameworkHttpService:QueryString({a = 1337, b = 420, c = "hello world"})) --> ?a=1337&b=420&c=hello world
Returns a new string URL appending a QueryString (<string[2]>) to a URL (<string>).
Example:
print(game.FrameworkHttpService:AppendQueryString("https://www.google.com/?yo=fam&d=9", "?a=1337&b=420&c=hello world")) --> https://www.google.com/?yo=fam&d=9&a=1337&b=420&c=hello world
Returns a new string URL-Encoding <string>
Example:
print(game.FrameworkHttpService:Encode("?a=hello world")) --> ?a=hello%20world
Returns a new string URL-Decoding <string>
Example:
print(game.FrameworkHttpService:Decode("?a=hello%20world")) --> ?a=hello world
FrameworkInternalService` is a special internal sub-service of Framework Service.
All items are not displayed because they are all marked as internal. It's not recommended to use them.