package org.nanoframework.core.httpclient;

import org.nanoframework.commons.entity.BaseEntity;

public class HttpResponse extends BaseEntity {
		private static final long serialVersionUID = -3602195552991064086L;
		
		public static final HttpResponse EMPTY = create(0, "", "");
		
		public final int statusCode;
		public final String reasonPhrase;
		public final String entity;
		
		public HttpResponse(int statusCode, String reasonPhrase, String entity) {
			this.statusCode = statusCode;
			this.reasonPhrase = reasonPhrase;
			this.entity = entity;
		}
		
		public static final HttpResponse create(int statusCode, String reasonPhrase, String entity) {
			return new HttpResponse(statusCode, reasonPhrase, entity);
		}

		public int getStatusCode() {
			return statusCode;
		}

		public String getReasonPhrase() {
			return reasonPhrase;
		}

		public String getEntity() {
			return entity;
		}

	}
@@ -137,17 +137,16 @@
 ntity %7B%0A
-%09
 %09private
@@ -206,20 +206,17 @@
 64086L;%0A
-%09%09%0A%09
+%0A
 %09public 
@@ -268,20 +268,17 @@
 %22, %22%22);%0A
-%09%09%0A%09
+%0A
 %09public 
@@ -299,17 +299,16 @@
 usCode;%0A
-%09
 %09public 
@@ -334,17 +334,16 @@
 Phrase;%0A
-%09
 %09public 
@@ -363,20 +363,17 @@
 entity;%0A
-%09%09%0A%09
+%0A
 %09public 
@@ -441,17 +441,16 @@
 ty) %7B%0A%09%09
-%09
 this.sta
@@ -471,17 +471,16 @@
 usCode;%0A
-%09
 %09%09this.r
@@ -509,17 +509,16 @@
 rase;%0A%09%09
-%09
 this.ent
@@ -535,16 +535,12 @@
 ty;%0A
-%09
 %09%7D%0A
-%09%09%0A%09
+%0A
 %09pub
@@ -626,25 +626,24 @@
 g entity) %7B%0A
-%09
 %09%09return new
@@ -691,22 +691,20 @@
 ntity);%0A
-%09
 %09%7D%0A%0A
-%09
 %09public 
@@ -723,25 +723,24 @@
 sCode() %7B%0A%09%09
-%09
 return statu
@@ -746,22 +746,20 @@
 usCode;%0A
-%09
 %09%7D%0A%0A
-%09
 %09public 
@@ -783,25 +783,24 @@
 hrase() %7B%0A%09%09
-%09
 return reaso
@@ -808,22 +808,20 @@
 Phrase;%0A
-%09
 %09%7D%0A%0A
-%09
 %09public 
@@ -843,17 +843,16 @@
 y() %7B%0A%09%09
-%09
 return e
@@ -862,11 +862,9 @@
 ty;%0A
-%09
 %09%7D%0A%0A
-%09
 %7D

update HttpResponse