Ultrakompakter HTTP Server
90ccfbd7875b7f1438f8b4268010e40b2c91b645..45e5222888794127bc43d2e17277a74fbc19d52a
5 days ago ulrich
Statuscode ergaenzt
45e522 diff | tree
5 days ago ulrich
Konstante ergaenzt
9c1d73 diff | tree
2 files modified
2 ■■■■■ changed files
src/de/uhilger/neon/FileServer.java 1 ●●●● patch | view | raw | blame | history
src/de/uhilger/neon/HttpResponder.java 1 ●●●● patch | view | raw | blame | history
src/de/uhilger/neon/FileServer.java
@@ -53,6 +53,7 @@
  public static final String STR_COMMA = ",";
  public static final String STR_DOT = ".";
  public static final String STR_EMPTY = "";
  public static final String STR_EQUAL = "=";
  
  public void serveFile(HttpExchange exchange) throws IOException {
    String fName = exchange.getRequestURI().getPath();
src/de/uhilger/neon/HttpResponder.java
@@ -46,6 +46,7 @@
  public static final int SC_OK = 200;
  public static final int SC_NOT_FOUND = 404;
  public static final int SC_METHOD_NOT_ALLOWED = 405;
  public static final int SC_UNPROCESSABLE_ENTITY = 422;
  public static final int SC_INTERNAL_SERVER_ERROR = 500;
  /* String Konstanten */