Home
last modified time | relevance | path

Searched refs:newFixedLengthResponse (Results 1 – 19 of 19) sorted by relevance

/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGZipIntegrationTest.java84 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in contentEncodingShouldBeAddedToFixedLengthResponses()
107 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in shouldFindCorrectAcceptEncodingAmongMany()
118 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in contentLengthShouldBeRemovedFromZippedResponses()
128 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in fixedLengthContentIsEncodedProperly()
147 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in noGzipWithoutAcceptEncoding()
157 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in contentShouldNotBeGzippedIfContentLengthIsAddedManually()
DPutStreamIntegrationTest.java70 …return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, e.getMessa… in serve()
74 return newFixedLengthResponse(response); in serve()
DGetAndPostIntegrationTest.java89 return newFixedLengthResponse(Status.OK, "application/octet-stream", sb.toString()); in serve()
91 return newFixedLengthResponse(sb.toString()); in serve()
DShutdownTest.java58 return newFixedLengthResponse("Whatever"); in serve()
DCookieIntegrationTest.java76 return newFixedLengthResponse("Cookies!"); in serve()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpDeleteRequestTest.java45 …this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, … in testDeleteRequestThatDoesntSendBackResponseBody_EmptyString()
81 …this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, … in testDeleteRequestThatDoesntSendBackResponseBody_NullString()
99 …this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.ACCEPTED, "a… in testDeleteRequestThatSendsBackResponseBody_Accepted()
118 …this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "applica… in testDeleteRequestThatSendsBackResponseBody_Success()
DHttpServerTest.java64 public Response response = newFixedLengthResponse("");
DHttpHeadRequestTest.java51 this.testServer.response = NanoHTTPD.newFixedLengthResponse(responseBody); in setUp()
DHttpGetRequestTest.java171 this.testServer.response = NanoHTTPD.newFixedLengthResponse(responseBody); in testOutputOfServeSentBackToClient()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java267 …return newFixedLengthResponse(Response.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "FORBIDDEN: " +… in getForbiddenResponse()
271 …return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "INTERNAL … in getInternalErrorResponse()
275 …return newFixedLengthResponse(Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Error 404, fil… in getNotFoundResponse()
353 public static Response newFixedLengthResponse(IStatus status, String mimeType, String message) { in newFixedLengthResponse() method in SimpleWebServer
354 Response response = NanoHTTPD.newFixedLengthResponse(status, mimeType, message); in newFixedLengthResponse()
402newFixedLengthResponse(Response.Status.REDIRECT, NanoHTTPD.MIME_HTML, "<html><body>Redirected: <a … in defaultRespond()
414 … return newFixedLengthResponse(Response.Status.OK, NanoHTTPD.MIME_HTML, listDirectory(uri, f)); in defaultRespond()
515 res = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, ""); in serveFile()
529 … res = newFixedLengthResponse(Response.Status.PARTIAL_CONTENT, mime, fis, newLen); in serveFile()
540 … res = newFixedLengthResponse(Response.Status.RANGE_NOT_SATISFIABLE, NanoHTTPD.MIME_PLAINTEXT, ""); in serveFile()
[all …]
/external/nanohttpd/nanolets/src/main/java/fi/iki/elonen/router/
DRouterNanoHTTPD.java125 return NanoHTTPD.newFixedLengthResponse(getStatus(), getMimeType(), getText()); in get()
173 return NanoHTTPD.newFixedLengthResponse(getStatus(), getMimeType(), text.toString()); in get()
235 …return NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.REQUEST_TIMEOUT, "text/plain", n… in get()
389 return NanoHTTPD.newFixedLengthResponse(Status.OK, "text/plain", // in process()
401 return NanoHTTPD.newFixedLengthResponse(Status.INTERNAL_ERROR, "text/plain", error); in process()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java866 …Response resp = newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "… in execute()
870 … Response resp = newFixedLengthResponse(re.getStatus(), NanoHTTPD.MIME_PLAINTEXT, re.getMessage()); in execute()
1977 …public static Response newFixedLengthResponse(IStatus status, String mimeType, InputStream data, l… in newFixedLengthResponse() method
1984 public static Response newFixedLengthResponse(IStatus status, String mimeType, String txt) { in newFixedLengthResponse() method
1986 … return newFixedLengthResponse(status, mimeType, new ByteArrayInputStream(new byte[0]), 0); in newFixedLengthResponse()
1995 … return newFixedLengthResponse(status, mimeType, new ByteArrayInputStream(bytes), bytes.length); in newFixedLengthResponse()
2002 public static Response newFixedLengthResponse(String msg) { in newFixedLengthResponse() method
2003 return newFixedLengthResponse(Status.OK, NanoHTTPD.MIME_HTML, msg); in newFixedLengthResponse()
2023 …return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SERVER IN… in serve()
2025 … return newFixedLengthResponse(re.getStatus(), NanoHTTPD.MIME_PLAINTEXT, re.getMessage()); in serve()
[all …]
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/
DHelloServer.java75 return newFixedLengthResponse(msg); in serve()
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/debug/
DDebugServer.java87 return newFixedLengthResponse(sb.toString()); in serve()
/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/
DAppNanolets.java99 return NanoHTTPD.newFixedLengthResponse(getStatus(), getMimeType(), inp, size); in get()
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DNanoWSD.java838 return newFixedLengthResponse(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, in serve()
843 …return newFixedLengthResponse(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, "Missing Webs… in serve()
851 … return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, in serve()
/external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/
DTestNanoFileUpLoad.java86 public Response response = newFixedLengthResponse("");
/external/nanohttpd/src/site/markdown/
Dindex.md69 return newFixedLengthResponse( msg + "</body></html>\n" );
/external/nanohttpd/
DREADME.md69 return newFixedLengthResponse( msg + "</body></html>\n" );