-
Notifications
You must be signed in to change notification settings - Fork 7
NanoHTTPD with a simple HTTP connection pool per the recommendation at http://java.sun.com/developer/technicalArticles/Networking/Webserver/. Adaptations made to NanoHTTPD and NanoHTTPDPooled for use with Android.
tenaciousRas/NanoHTTPDPooled
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NanoHTTPDPooled provides a simple HTTP connection pool per the recommendation at http://java.sun.com/developer/technicalArticles/Networking/Webserver/. The intent is to offload the overhead involved in thread management from time-of-request to time-of-instantiation. This code is based on NanoHTTPD, a thin HTTP server written in Java. The absence of a package name is intentional: adopt your own package name to the source. To use: * Add the source files to your project. Use either NanoHTTPPooled, or AndroidHTTPD. * If using AndroidHTTPD: ** Instantiate AndroidHTTPD from your Activity or Service as desired. ** Threading handled internally. ** Override onRequestReceived(...) with your handler code. Or, set an application-visible folder as wwwroot. * See http://elonen.iki.fi/code/nanohttpd/#ways-to-use for context. This code is conveyed under the following license: The original source for NanoHTTPD is available from http://elonen.iki.fi/code/nanohttpd/. Copyright (C) 2001,2005-2012 by Jarno Elonen <[email protected]> and Copyright (C) 2010 by Konstantinos Togias <[email protected]> and Copyright (C) 2012 by Free Beachler (https://github.com/tenaciousRas/) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.;
About
NanoHTTPD with a simple HTTP connection pool per the recommendation at http://java.sun.com/developer/technicalArticles/Networking/Webserver/. Adaptations made to NanoHTTPD and NanoHTTPDPooled for use with Android.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published