public class Request extends Object
Automatically gets the Basic Auth from headers.
Constructor and Description |
---|
Request(com.sun.net.httpserver.HttpExchange exchange) |
Modifier and Type | Method and Description |
---|---|
String |
getAuth() |
InputStream |
getRequestBody() |
String |
getRequestMethod() |
String |
getTarget() |
boolean |
hasAuth() |
boolean |
isAPIRequest() |
void |
setAuth(com.sun.net.httpserver.Headers requestHeaders) |
String |
toString() |
public String getAuth()
public void setAuth(com.sun.net.httpserver.Headers requestHeaders)
public boolean hasAuth()
public String getRequestMethod()
public String getTarget()
public boolean isAPIRequest()
public InputStream getRequestBody()
Copyright © 2017. All rights reserved.