The caller actions for responding to client requests.
Gets the hostname from the remote address.
Sends the outbound response to the caller.
- message ResponseMessage (default ())
The outbound response or any allowed payload
http:ListenerError if failed to respond or else
Sends a promised push response to the caller.
http:ListenerError in case of failures while responding with the promised response
Sends a redirect response to the user with the specified redirection status code.
- response Response
Response to be sent to the caller
- code RedirectCode
The redirect status code to be sent
- locations string[ ]
An array of URLs to which the caller can redirect to
http:ListenerError if failed to send the redirect response or else
function getRemoteHostName() returns string?
Gets the hostname from the remote address. This method may trigger a DNS reverse lookup if the address was created with a literal IP address.
1string? remoteHost = caller.getRemoteHostName();
The hostname of the address or else
() if it is unresolved