Home
last modified time | relevance | path

Searched refs:NanoHTTPD (Results 1 – 25 of 27) sorted by relevance

12

/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpDeleteRequestTest.java15 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_EmptyString()
33 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_NullString()
51 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_NullInputStream()
69 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "application/xml", "<bo… in testDeleteRequestThatSendsBackResponseBody_Success()
88 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.ACCEPTED, "application/xml"… in testDeleteRequestThatSendsBackResponseBody_Accepted()
DHttpChunkedResponseTest.java7 import static fi.iki.elonen.NanoHTTPD.Response.Status.OK;
34 testServer.response = new NanoHTTPD.Response(OK, "what/ever", pipedInputStream); in thatChunkedContentIsChunked()
DHttpServerTest.java59NanoHTTPD.HTTPSession session = testServer.createSession(tempFileManager, inputStream, outputStrea… in invokeServer()
86 public static class TestTempFileManager extends NanoHTTPD.DefaultTempFileManager {
97 public static class TestServer extends NanoHTTPD {
DHttpHeadRequestTest.java15 testServer.response = new NanoHTTPD.Response(responseBody); in setUp()
48 assertEquals(NanoHTTPD.Method.HEAD, testServer.method); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
DHttpGetRequestTest.java31 testServer.response = new NanoHTTPD.Response(responseBody); in testOutputOfServeSentBackToClient()
61 assertEquals(NanoHTTPD.Method.GET, testServer.method); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
DHttpSessionHeadersTest.java27NanoHTTPD.HTTPSession session = testServer.createSession(TEST_TEMP_FILE_MANAGER, inputStream, outp… in testHeadersRemoteIp()
/external/nanohttpd/webserver/markdown-plugin/src/main/java/fi/iki/elonen/
DMarkdownWebServerPlugin.java8 import static fi.iki.elonen.NanoHTTPD.MIME_HTML;
9 import static fi.iki.elonen.NanoHTTPD.Response.Status.OK;
32 …public NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSessio… in serveFile()
35 new NanoHTTPD.Response(OK, MIME_HTML, processor.markdownToHtml(markdownSource)); in serveFile()
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DWebSocket.java29 protected final NanoHTTPD.IHTTPSession handshakeRequest;
31 protected final NanoHTTPD.Response handshakeResponse = new NanoHTTPD.Response(
32 NanoHTTPD.Response.Status.SWITCH_PROTOCOL, null, (InputStream) null) {
43 public WebSocket(NanoHTTPD.IHTTPSession handshakeRequest) { in WebSocket()
53 public NanoHTTPD.IHTTPSession getHandshakeRequest() { in getHandshakeRequest()
57 public NanoHTTPD.Response getHandshakeResponse() { in getHandshakeResponse()
DWebSocketResponseHandler.java7 import fi.iki.elonen.NanoHTTPD.IHTTPSession;
8 import fi.iki.elonen.NanoHTTPD.Response;
33 return new Response(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, in serve()
38 return new Response(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, in serve()
47 return new Response(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, in serve()
DIWebSocketFactory.java3 import fi.iki.elonen.NanoHTTPD.IHTTPSession;
DNanoWebSocketServer.java4 public class NanoWebSocketServer extends NanoHTTPD implements IWebSocketFactory {
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DWebServerPlugin.java6 import fi.iki.elonen.NanoHTTPD.IHTTPSession;
18NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, IHTTPSession session, File f… in serveFile()
DServerRunner.java8 executeInstance((NanoHTTPD) serverClass.newInstance()); in run()
14 public static void executeInstance(NanoHTTPD server) { in executeInstance()
DSimpleWebServer.java20 public class SimpleWebServer extends NanoHTTPD {
301 …Response res = createResponse(Response.Status.REDIRECT, NanoHTTPD.MIME_HTML, "<html><body>Redirect… in respond()
313 … return createResponse(Response.Status.OK, NanoHTTPD.MIME_HTML, listDirectory(uri, f)); in respond()
338 return createResponse(Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, in getNotFoundResponse()
343 return createResponse(Response.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "FORBIDDEN: " in getForbiddenResponse()
348 return createResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, in getInternalErrorResponse()
397 … res = createResponse(Response.Status.RANGE_NOT_SATISFIABLE, NanoHTTPD.MIME_PLAINTEXT, ""); in serveFile()
DInternalRewrite.java5 import static fi.iki.elonen.NanoHTTPD.Response;
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/
DHelloServer.java8 public class HelloServer extends NanoHTTPD {
30 return new NanoHTTPD.Response(msg); in serve()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DCookieIntegrationTest.java3 import fi.iki.elonen.NanoHTTPD;
35 testServer.cookiesToSend.add(new NanoHTTPD.Cookie("name", "value", 30)); in testCookieSentBackToClient()
66 public static class CookieTestServer extends NanoHTTPD {
DIntegrationTestBase.java3 import fi.iki.elonen.NanoHTTPD;
15 public abstract class IntegrationTestBase<T extends NanoHTTPD> {
DShutdownTest.java4 import fi.iki.elonen.NanoHTTPD;
41 private class TestServer extends NanoHTTPD {
DPutStreamIntegrationTest.java15 import fi.iki.elonen.NanoHTTPD;
35 public static class TestServer extends NanoHTTPD {
DGetAndPostIntegrationTest.java3 import fi.iki.elonen.NanoHTTPD;
103 public static class TestServer extends NanoHTTPD {
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/samples/echo/
DDebugWebSocket.java3 import fi.iki.elonen.NanoHTTPD;
16 public DebugWebSocket(NanoHTTPD.IHTTPSession handshake, boolean debug) { in DebugWebSocket()
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/debug/
DDebugServer.java3 import fi.iki.elonen.NanoHTTPD;
10 public class DebugServer extends NanoHTTPD {
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
DWebSocketResponseHandlerTest.java9 import fi.iki.elonen.NanoHTTPD.IHTTPSession;
10 import fi.iki.elonen.NanoHTTPD.Response;
DNanoWebSocketServerTest.java18 private NanoHTTPD.IHTTPSession session;

12