slope

slope.js is a web server library written in Node.js that strives to be as feature-filled as it is easy-to-use.

View the Project on GitHub wibbuffey/slope

Functions

getMIMEType(filename)String

Attempts to guess the MIME Content-Type of a file based on its extension.

raiseErrors(error, config, request, response)

Used internally to raise HTTP errors.

renderPages.()

Renders a template as HTML which can be passed into Result.send.

getMIMEType(filename) ⇒ String

Attempts to guess the MIME Content-Type of a file based on its extension.

Kind: global function
Returns: String - (Guessed) MIME Content-Type

Param Type Description
filename String The filename.

raiseErrors(error, config, request, response)

Used internally to raise HTTP errors.

Kind: global function

Param Type
error Number
config Config
request http.IncomingMessage
response http.ServerResponse

renderPages.()

Renders a template as HTML which can be passed into Result.send.

Kind: global function