Add latest revisions after getting it functional
This commit is contained in:
parent
9653e273e4
commit
ffcecb8e8e
1443 changed files with 258988 additions and 6046 deletions
33
src/main/java/com/zontreck/ariaslib/http/HTTPResponse.java
Normal file
33
src/main/java/com/zontreck/ariaslib/http/HTTPResponse.java
Normal file
|
@ -0,0 +1,33 @@
|
|||
package dev.zontreck.ariaslib.http;
|
||||
|
||||
public class HTTPResponse
|
||||
{
|
||||
private String ContentType;
|
||||
private int ResponseCode;
|
||||
private String ResponseBody;
|
||||
private HTTPRequest OriginalRequest;
|
||||
|
||||
protected HTTPResponse(String contentType, int code, String body, HTTPRequest request){
|
||||
this.ContentType = contentType;
|
||||
this.ResponseCode = code;
|
||||
this.ResponseBody = body;
|
||||
this.OriginalRequest = request;
|
||||
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return ContentType;
|
||||
}
|
||||
|
||||
public int getResponseCode() {
|
||||
return ResponseCode;
|
||||
}
|
||||
|
||||
public String getResponseBody() {
|
||||
return ResponseBody;
|
||||
}
|
||||
|
||||
public HTTPRequest getOriginalRequest() {
|
||||
return OriginalRequest;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue