Cleaned Http handling a bit.

This commit is contained in:
FrozenCow 2011-03-04 21:31:16 +01:00
parent 9ce160f1b9
commit d1f280eb0f
11 changed files with 143 additions and 51 deletions

View file

@ -8,8 +8,7 @@ import java.util.Map;
public class HttpResponse {
private HttpServerConnection connection;
public String version = "1.1";
public int statusCode = 200;
public String statusMessage = "OK";
public HttpStatus status = null;
public Map<String, String> fields = new HashMap<String, String>();
private OutputStream body;