Searched defs:newFixedLengthResponse (Results 1 - 2 of 2) sorted by relevance
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
H A D | SimpleWebServer.java | 267 return newFixedLengthResponse(Response.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "FORBIDDEN: " + s); 271 return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "INTERNAL ERROR: " + s); 275 return newFixedLengthResponse(Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Error 404, file not found."); 353 public static Response newFixedLengthResponse(IStatus status, String mimeType, String message) { method in class:SimpleWebServer 354 Response response = NanoHTTPD.newFixedLengthResponse(status, mimeType, message); 402 newFixedLengthResponse(Response.Status.REDIRECT, NanoHTTPD.MIME_HTML, "<html><body>Redirected: <a href=\"" + uri + "\">" + uri + "</a></body></html>"); 414 return newFixedLengthResponse(Response.Status.OK, NanoHTTPD.MIME_HTML, listDirectory(uri, f)); 515 res = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, ""); 529 res = newFixedLengthResponse(Response.Status.PARTIAL_CONTENT, mime, fis, newLen); 540 res = newFixedLengthResponse(Respons [all...] |
/external/nanohttpd/core/src/main/java/fi/iki/elonen/ |
H A D | NanoHTTPD.java | 866 Response resp = newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage()); 870 Response resp = newFixedLengthResponse(re.getStatus(), NanoHTTPD.MIME_PLAINTEXT, re.getMessage()); 1977 public static Response newFixedLengthResponse(IStatus status, String mimeType, InputStream data, long totalBytes) { method in class:NanoHTTPD 1984 public static Response newFixedLengthResponse(IStatus status, String mimeType, String txt) { method in class:NanoHTTPD 1986 return newFixedLengthResponse(status, mimeType, new ByteArrayInputStream(new byte[0]), 0); 1995 return newFixedLengthResponse(status, mimeType, new ByteArrayInputStream(bytes), bytes.length); 2002 public static Response newFixedLengthResponse(String msg) { method in class:NanoHTTPD 2003 return newFixedLengthResponse(Status.OK, NanoHTTPD.MIME_HTML, msg); 2023 return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage()); 2025 return newFixedLengthResponse(r [all...] |
Completed in 543 milliseconds