Handles the actions specific to the http server
Static
Closes the http server and all open sockets
sends a response redirect.
the statusCode for the response.
the url to redirect to.
the response to write the redirect to.
Preflight request:
https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request https://www.w3.org/TR/2020/SPSD-cors-20200602/#resource-preflight-requests
sends a response to the browser reporting an error.
the oauth error
the HTTP response.
sends a response to the browser reporting the success.
sends a response error.
the message for the http body.
the response to write the error to.
Sets a callback to be executed when the authentication timeout occurs
Starts the http server after checking that the port is open
Handles the actions specific to the http server