Tinyfox is a high-performance HTTP server that supports Owin standard Web applications, and is the "Sister section" of Jexus Web server. Tinyfox itself is the HTML server, all Web applications, by loading an "application adapter" or "plug-in" implementation containing a Owinmain method, tinyfox the data exchange format between the application is a dictionary of the Owin specification.
First, Tinyfox has the following characteristics:
1, cross-platform: support Windows, Linux and other common operating systems;
2, ultra-lightweight: The function of a single and clear: In addition to static files from their own processing, other application logic directly to the user processing;
3, high performance: The bottom based on LIBUV development, is a complete asynchronous, non-blocking, event-driven model, the upper code is also highly optimized; LIBUV is Nodejs's base library, LIBUV is a high-performance event-driven library that encapsulates some of the underlying features of Windows and Unix platforms, Provides a unified API,LIBUV for developers with asynchronous (asynchronous), event-driven (event-driven) programming styles, whose main task is to provide a set of event loops and callback functions based on I/O (or other activity) notifications for the driver LIBUV Provides a set of core toolset such as timers, non-blocking network programming support, asynchronous access to file system, subprocess and other features, more on LIBUV recommended reference ebook http://www.nowx.org/uvbook/.
4, high security and high stability: This server was developed by Jexus Web Server authors, to a large extent, to undertake the high security and high stability of JWS quality;
Second, how to use
- Download the installation package http://linuxdot.net/down/tinyfox-1.0.tar.gz, the entire host size is packaged in 7Z with just 1.26M size. After unpacking the compressed package, we are able to discover several important components, as shown in:
- Windows needs to be installed. NET4 and version, non-Windows operating system requires the installation of mono 3.12 or later;
- On Windows, click Fox.bat in the Tinyfox folder, enter on Linux./fox.sh can run; The default port for the current version is 8088, and you can modify Fox.bat (Windows) or fox.sh (non-Windows) scripts to Add "-p port number" behind Owinhost.exe.
Bring a test project, access the address below
http://localhost:8088/
Http://localhost:8088/info
Http://localhost:8088/test
- Your application needs to be developed based on Owin or in an application-layer framework with OWIN interfaces (such as NANCYFX), where you can basically create a new class (known as an "adapter" "Interface"), which must have a method called "Owinmain" (see Demo for a specific format). Then put the compiled DLL in the Bin folder or AppRoot folder of the site Wwwroot. Jinghong wrote an article "Owinhost Add new Members: Tinyfox", which details how to deploy NANCYFX applications with Owin mode.
Tools directory, there are three "app" examples in Jws.owin-adapters.zip, Base.demo is the best embodiment of Owin original definition, Msowin.demo is loaded in the plug-in Microsoft.owin.dll into the MS processing Owin process, Nancy.demo is in the MS Owin processing flow (pipeline) load Nancyfx, Run the NANCYFX application Layer framework.
Welcome to the test, if you have any questions, QQ Group (102732979 or 103810355) feedback, discussion.
Introduce a new member of the Owin server Tinyfox