You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
work/HttpRequest.java

40 lines
724 B

package middleware;
/**
* HTTP请求对象
*/
public class HttpRequest {
private String path;
private String method;
private String headers;
private String body;
public HttpRequest(String path, String method) {
this.path = path;
this.method = method;
}
public String getPath() {
return path;
}
public String getMethod() {
return method;
}
public void setHeaders(String headers) {
this.headers = headers;
}
public String getHeaders() {
return headers;
}
public void setBody(String body) {
this.body = body;
}
public String getBody() {
return body;
}
}