Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/HttpResponse.js')
-rw-r--r--src/Network/HttpResponse.js60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/Network/HttpResponse.js b/src/Network/HttpResponse.js
new file mode 100644
index 0000000..7758045
--- /dev/null
+++ b/src/Network/HttpResponse.js
@@ -0,0 +1,60 @@
+export default class HttpResponse {
+
+ constructor() {
+ this._data = null;
+ this._headers = [];
+ this._contentType = 'text/plain';
+ this._httpStatus = 0;
+ this._response = {};
+ }
+
+ getData() {
+ return this._data;
+ }
+
+ setData(value) {
+ this._data = value;
+
+ return this;
+ }
+
+ getHeaders() {
+ return this._headers;
+ }
+
+ setHeaders(value) {
+ this._headers = value;
+
+ return this;
+ }
+
+ getContentType() {
+ return this._contentType;
+ }
+
+ setContentType(value) {
+ this._contentType = value;
+
+ return this;
+ }
+
+ getHttpStatus() {
+ return this._httpStatus;
+ }
+
+ setHttpStatus(value) {
+ this._httpStatus = value;
+
+ return this;
+ }
+
+ getHttpResponse() {
+ return this._response;
+ }
+
+ setHttpResponse(value) {
+ this._response = value;
+ return this;
+ }
+
+} \ No newline at end of file