Fixes null response values
This commit is contained in:
parent
032b789e33
commit
615049ab7b
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue