slope.js is a web server library written in Node.js that strives to be as feature-filled as it is easy-to-use.
StringAttempts to guess the MIME Content-Type of a file based on its extension.
Used internally to raise HTTP errors.
Renders a template as HTML which can be passed into Result.send.
StringAttempts 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. |
Used internally to raise HTTP errors.
Kind: global function
| Param | Type |
|---|---|
| error | Number |
| config | Config |
| request | http.IncomingMessage |
| response | http.ServerResponse |
Renders a template as HTML which can be passed into Result.send.
Kind: global function