Services - Xeptix/framework GitHub Wiki

Framework Services

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

ThreadService

Soon!

FrameworkService

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

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.

method QueryString

<string> FrameworkHttpService:QueryString(<table>)

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

method AppendQueryString

<string> FrameworkHttpService:AppendQueryString(<string>, <string[2]>)

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

method Encode

<string> FrameworkHttpService:Encode(<string>)

Returns a new string URL-Encoding <string>

Example:

print(game.FrameworkHttpService:Encode("?a=hello world")) --> ?a=hello%20world

method Decode

<string> FrameworkHttpService:Decode(<string>)

Returns a new string URL-Decoding <string>

Example:

print(game.FrameworkHttpService:Decode("?a=hello%20world")) --> ?a=hello world

FrameworkInternalService

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.

⚠️ **GitHub.com Fallback** ⚠️