menu

Information

Documentation

No documentation is available at this time. For the complete set of docs, please check out the docs page on skUnity here.

  • (http|web|server) request

    When the default handler (event handler) is used on a web server, this event is triggered when a visitor goes to your page. Many modern browers go to favicon.ico to try to figure out the website's icon, so thats why you see two requests sometimes.

  • (http|web|server) request with path[ of] %string%

    When the default handler (event handler) is used on a web server, this event is triggered when a visitor goes to your page. Many modern browers go to favicon.ico to try to figure out the website's icon, so thats why you see two requests sometimes.

  • connect [to ][my]sql (using|with) host %string%(, | )user[name] %string%(, | )pass[word] %string%(, | )database %string%[(, | )with key %-string%]

    Connect to a mysql server, usually done in `on script load`

  • update [[my]sql ][ using|using] %preparedstatement%[ with [connection ]key %-string%]

    Update the database using a Prepared Statement

  • add [request ](property|header) [named ]%string% with value %string% to %urlconnection%

    Add a request header when connecting to something

  • add [request ](variable|parameter|request parameter) [named ]%string% with value %string% to %urlconnection%

    Add a request parameter when connecting to something

  • (<|>)(<|>) <.+>

    (+|-)(+|-) <.+>

  • .. <.+>

    (,,|&&|$$|!!|^^) <.+>

  • start (http|web|website) [server ]on port %integer%

    Start a web server on a specified port

  • start (http|web|website) [server ]on port %integer% if not already started

    Start a web server on a specified port if not already started

  • (reply|send) back %string%[ to (client|requester)]

    Send back data to the requester, e.g `send back "Hello Website Visitor!"``

  • se(t|nd) [back ]header %string% with [value ]%string%

    Send back a header to the requester, such as Content-Type (text/html for HTML)

  • send [back ]response code %number%

    Send back a response code to the requester, e.g 200 = OK, 404 = NOT FOUND, 418 = IM A TEAPOT

  • stop [web[ ]](exchange|request)

    Stop the exchange of information, do this after you have sent all the headers, the response code, and the content

  • [new ][prepared][ ]statement[ with query] %string%[ using [connection ]key %-string%]

    Make a new Prepared Statement for use on databases

  • result of [HTTP ][connection ] %urlconnection%

    Get the result of a connection (this expression starts the connection)

  • new [HTTP ]connection with [URL ]%string%[ (and|with) method %urlconnectiontype%]

    Create a new HTTP Connection to retrieve data from a website

  • contents of file %string%

    Get the contents of a file

  • file contents of file %string%

    Get the contents of a file

  • GET var[iable] %string% (of|for) %httpexchange%

    Get a single get variable for a specified key

  • GET var[iable] %string%

    Get a single get variable for a specified key

  • [web] handler of port %integer%

    Get the web handler on a port, {SETTABLE EXPRESSION}

  • [received] header %string% (of|from) %httpexchange%

    Get a received header from the requester

  • %httpexchange%'s %string% header [received]

    Get a received header from the requester

  • header [of [type]] %string% [received]

    Get a received header from the requester

  • [received] %string% headers (of|from) %httpexchange%

    Get a received header from the requester

  • %httpexchange%'s %string% headers [received]

    Get a received header from the requester

  • headers [of [type]] %string% [received]

    Get a received header from the requester

  • set %listvariable% to [all ]headers (of|for) %httpexchange%

    Set a list variable to all the headers received from the requester

  • ip[ address] (of|for) %httphandler%

    Get the IP address of the requester

  • ip[ address]

    Get the IP address of the requester

  • multiline string

    Get the EOL/Multiline string after appending to it, example shown in the EOL appendation syntax

  • MS

    Get the EOL/Multiline string after appending to it, example shown in the EOL appendation syntax

  • EOL

    Get the EOL/Multiline string after appending to it, example shown in the EOL appendation syntax

  • exact string

    Get the EOL/Multiline string after appending to it, example shown in the EOL appendation syntax

  • specified string

    Get the EOL/Multiline string after appending to it, example shown in the EOL appendation syntax

  • [requested] (path|folder) (from|of) %httphandler%

    Get the requested path, the root path aka no path is "/"

  • [requested] (path|folder)

    Get the requested path, the root path aka no path is "/"

  • POST var[iable] %string% (of|for) %httpexchange%

    Get a single POST variable for a specified key

  • POST var[iable] %string%

    Get a single POST variable for a specified key

  • set %listvariable% to [all ]POST var[iable][s][ (of|for) %httpexchange%]

    Set a list variable to all the POST variables

  • event-[web]request

    Get the request on an `on web request` event

  • [web]request

    Get the request on an `on web request` event

  • [new] file [web] handler [[on ]directory] %string%

    A new file handler which serves files, name a file index(extension optional) for it to show in the root directory. This starts from the same folder of where the Spigot jar is

  • PreparedStatement (instantiated from an expression)

    A prepared statement to be used on a database

  • urlconnection (instantiated from an expression)

    A URL connection outbound

  • urlconnectiontype = (GET|POST)

    Outbound connection type, either GET or POST

  • httpexchange (instantiated from an expression)

    Represents a request inbound

  • webhandler (instantiated from an expression)

    Represents how web requests are handled, event is default, a file one can be used by setting the handler of a web server.