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
Add a note
|