C# Class NodeNetAsync.Yui.NodeNetJsFilter

Adds support for automatical JS minimizing and serving combined JS files. Minification is done using YUI compressor with IKVM. For .js files : It will minimize JS files before serving them. For .jsx files: It will read all the lines (that will be references to .js files) from the JSX and will combine and minimize them. Trying to access a .jsx file will cause a 404 error. To reference a .jsx file you should reference to a file with the same name and path and the extension changed to .js
Inheritance: IHttpStaticFilter
Datei anzeigen Open project: soywiz/NodeNetAsync

Public Methods

Method Description
NodeNetJsFilter ( bool Compressing = true ) : System

Protected Methods

Method Description
JsHandler ( HttpStaticFileServer Parameter ) : Task

JsxHandler ( HttpStaticFileServer Parameter ) : Task

Trying to access the JSX file directly will cause a 404 error to avoid accessing the list of files.

Private Methods

Method Description
IHttpStaticFilter ( HttpStaticFileServer HttpStaticFileServer ) : void

Method Details

JsHandler() protected method

protected JsHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
return Task

JsxHandler() protected method

Trying to access the JSX file directly will cause a 404 error to avoid accessing the list of files.
protected JsxHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
return Task

NodeNetJsFilter() public method

public NodeNetJsFilter ( bool Compressing = true ) : System
Compressing bool
return System