getRequestURI

getContextPath

Returns the context path, relative to the server root.
This is an initial substring of the HttpRequestContext.getRequestPath().
Like ServletContext#getContextPath, but ends with a '/'.
The string getRequestURI() is the same as the concatenation of
getContextPath(), getScriptPath(),
and getLocalPath().

responseLength - response length in bytes, or -1 (unspecified).
Note this is different from HttpExchange.sendResponseHeaders.
This method must be called before getResponseStream.
Implementations should set statusCode to STATUS_SENT.