commercetest / androidserver-for-testing

Android server that serves react / files app using com.sun.net.httpserver
0 stars 0 forks source link

Possible enhancement to core web server - add png and jpeg support? #4

Open julianharty opened 6 months ago

julianharty commented 6 months ago

Context

The server currently serves three types of files: javascript, css, and svg in addition to serving index.html. It'd be nice to include additional image formats including png and jpeg. This isn't vital and - perhaps having a server that only serves text (string) encoded contents is a a good thing, TBD.

Note: https://github.com/sonuauti/Android-Web-Server is a more fully featured server and might provide ideas on how to implement this support (if I don't use that server directly). That project hasn't been updated for about 6 years unlike the parent of this project which was one reason I chose this one as it's quite current from an Android runtime perspective.

julianharty commented 6 months ago

I forgot to note that currently the actual content that's displayed is embedded in a .js file that's launched via index.html