Fixes null response values

This commit is contained in:
zontreck 2023-12-05 13:26:31 -07:00
parent 032b789e33
commit 615049ab7b

View file

@ -5,8 +5,13 @@ 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;
}
@ -21,4 +26,8 @@ public class HTTPResponse
public String getResponseBody() {
return ResponseBody;
}
public HTTPRequest getOriginalRequest() {
return OriginalRequest;
}
}