Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > handlers

handlers

Handlers controls the binding of content types to content handlers. Content handlers implement the interface anvil.server.ContentHandler. Works closely with bind, which controls how the different suffixes map into content types.

Attributes
name default description
content/type N/A Classname of content handler. Default binary handler is anvil.server.DefaultContentHandler. There may be as many of these mappings as are required. See Providers.

Example:
  
  zone:
    path = api/
    bind:
      .html = text/html
    end
    handlers:
      text/html = anvil.server.DefaultContentHandler
    end
  end

See also  | Configuration  | server  | bind  | Providers
Contributes notes:
Add a note
What's new | Anvil