Struct nickel::FaviconHandler [] [src]

pub struct FaviconHandler { /* fields omitted */ }

Methods

impl FaviconHandler
[src]

Create a new middleware to serve an /favicon.ico file from an in-memory cache. The file is only read from disk once when the server starts.

Examples

use nickel::{Nickel, FaviconHandler};
let mut server = Nickel::new();

server.utilize(FaviconHandler::new("/path/to/ico/file"));

Trait Implementations

impl<D> Middleware<D> for FaviconHandler
[src]