Searched refs:getMimeTypeForFile (Results 1 – 4 of 4) sorted by relevance
43 Assert.assertEquals("text/html", NanoHTTPD.getMimeTypeForFile("xxxx.html")); in testExistingMimeType()49 … Assert.assertEquals("application/octet-stream", NanoHTTPD.getMimeTypeForFile("xxxx.notExistent")); in testNotExistingMimeType()54 Assert.assertEquals("video/wrongOverwrite", NanoHTTPD.getMimeTypeForFile("xxxx.ts")); in testOverwritenMimeType()60 Assert.assertEquals("video/manualOverwrite", NanoHTTPD.getMimeTypeForFile("xxxx.flv")); in testManualMimeType()
225 WebServerPlugin plugin = SimpleWebServer.mimeTypeHandlers.get(getMimeTypeForFile(uri)); in canServeUri()422 String mimeTypeForFile = getMimeTypeForFile(uri); in defaultRespond()
233 …return NanoHTTPD.newChunkedResponse(getStatus(), getMimeTypeForFile(fileOrdirectory.getName()), fi… in get()
1756 public static String getMimeTypeForFile(String uri) { in getMimeTypeForFile() method