Home
last modified time | relevance | path

Searched refs:SimpleWebServer (Results 1 – 7 of 7) sorted by relevance

/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/
DTestCorsHttpServer.java80 SimpleWebServer.main(args); in setUp()
122 …Assert.assertNull("no System " + SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME + " sho… in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty()
123 System.getProperty(SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME)); in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty()
129 …("Cors should have added a header: Access-Control-Allow-Headers: " + SimpleWebServer.DEFAULT_ALLOW… in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty()
130SimpleWebServer.DEFAULT_ALLOWED_HEADERS, response.getLastHeader("Access-Control-Allow-Headers").ge… in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty()
136 …Assert.assertNull("no System " + SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME + " sho… in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
137 System.getProperty(SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME)); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
140 … System.setProperty(SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME, expectedValue); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
151 System.clearProperty(SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
DTestCorsHttpServerWithSingleOrigin.java80 SimpleWebServer.main(args); in setUp()
DTestHttpServer.java75 SimpleWebServer.main(args); in setUp()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java57 public class SimpleWebServer extends NanoHTTPD { class
77 InputStream stream = SimpleWebServer.class.getResourceAsStream("/LICENSE.txt");
125 System.out.println(SimpleWebServer.LICENCE + "\n"); in main()
171 ServerRunner.executeInstance(new SimpleWebServer(host, port, rootDirs, quiet, cors)); in main()
187 SimpleWebServer.INDEX_FILE_NAMES.addAll(Arrays.asList(indexFiles)); in registerPluginForMimeType()
189 SimpleWebServer.mimeTypeHandlers.put(mimeType, plugin); in registerPluginForMimeType()
199 public SimpleWebServer(String host, int port, File wwwroot, boolean quiet, String cors) { in SimpleWebServer() method in SimpleWebServer
203 public SimpleWebServer(String host, int port, File wwwroot, boolean quiet) { in SimpleWebServer() method in SimpleWebServer
207 public SimpleWebServer(String host, int port, List<File> wwwroots, boolean quiet) { in SimpleWebServer() method in SimpleWebServer
211 public SimpleWebServer(String host, int port, List<File> wwwroots, boolean quiet, String cors) { in SimpleWebServer() method in SimpleWebServer
[all …]
/external/nanohttpd/
DAndroid.bp10 // This module target includes SimpleWebServer that supports additional functionality
DREADME.md16 mvn exec:java -pl webserver -Dexec.mainClass="fi.iki.elonen.SimpleWebServer"
213 The included class *fi.iki.elonen.SimpleWebServer* is intended to be used as a starting point for y…
/external/nanohttpd/src/site/markdown/
Dindex.md16 mvn exec:java -pl webserver -Dexec.mainClass="fi.iki.elonen.SimpleWebServer"
209 The included class *fi.iki.elonen.SimpleWebServer* is intended to be used as a starting point for y…