mirror of
https://github.com/unmojang/authlib-injector.git
synced 2025-09-30 23:01:29 -04:00
nanohttpd: refactor: remove IHTTPSession.execute()
This commit is contained in:
parent
5ca213f5cc
commit
854b0284bd
@ -58,22 +58,30 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public interface IHTTPSession {
|
public interface IHTTPSession {
|
||||||
|
|
||||||
void execute() throws IOException;
|
InetSocketAddress getRemoteAddress();
|
||||||
|
|
||||||
Map<String, String> getHeaders();
|
|
||||||
|
|
||||||
InputStream getInputStream() throws IOException;
|
|
||||||
|
|
||||||
String getMethod();
|
String getMethod();
|
||||||
|
|
||||||
Map<String, List<String>> getParameters();
|
|
||||||
|
|
||||||
String getQueryParameterString();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the path part of the URL.
|
* @return the path part of the URL.
|
||||||
*/
|
*/
|
||||||
String getUri();
|
String getUri();
|
||||||
|
|
||||||
InetSocketAddress getRemoteAddress();
|
/**
|
||||||
|
* @return raw query string, null if no query exists
|
||||||
|
*/
|
||||||
|
String getQueryParameterString();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return decoded query parameters
|
||||||
|
*/
|
||||||
|
Map<String, List<String>> getParameters();
|
||||||
|
|
||||||
|
Map<String, String> getHeaders();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return request body, null if the request does not have a payload
|
||||||
|
*/
|
||||||
|
InputStream getInputStream() throws IOException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -257,7 +257,6 @@ public abstract class NanoHTTPD {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("resource")
|
@SuppressWarnings("resource")
|
||||||
@Override
|
|
||||||
public void execute() throws IOException {
|
public void execute() throws IOException {
|
||||||
Response r = null;
|
Response r = null;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user