#() Is it possible to somehow connect the API to denizen?
1 messages · Page 1 of 1 (latest)
() Is it possible to somehow connect the API to denizen?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
Non-ASCII username for @rain viper has been overriden with a placeholder nickname. Please change to a readable+typable US-English ASCII nickname or username.
!event web
Core
webserver web request
port:<#> to only handle requests to a specific port.
path:<path> to only handle requests that match the given advanced-matcher for the path.
method:<method> to only handle requests with the specific method (such as GET or POST).
has_response:<true/false> to only handle requests that do or don't have a response already.
when a webserver opened by !command webserver receives a connection request.
<context.method> returns the method that was used (such as GET or POST).
<context.path> returns the path requested (such as "/index.html").
<context.port> returns the port connected to.
<context.remote_address> returns the IP address that connected.
<context.query> returns a MapTag of the query data (if no query, returns empty map).
<context.raw_query> returns the raw query input (if no query, returns null).
<context.raw_user_info> returns the raw user info input (if any) (this is a historical HTTP system...
<context.headers> returns a MapTag of all input headers, where the key is the header name and the ...
<context.body> returns the text content of the body that was sent, if any. Particularly for POST requests.
<context.body_binary> returns the raw binary content body that was sent, if any. Particularly for POST requests.
... and 1 more.
"CODE:" + Element(Number), to set a standard web response code, such as 'code:200' for 'OK', or 'code:404' for 'File Not Found'
"HEADERS": + MapTag to set a map of headers, where map keys are the header name and map values are the text of the value, for example headers:[Content-Type=text/html] ... n...
Examples too long to display... Check the website for more examples
it'd depend on what kind of donation setup you have
Thanks you 💞
