Behaviour: openflax.handler.
Some browsers (notably Internet Explorer) prefer to download files
if there is a file assocation for the files' extension configured.
This handler gets around that by displaying the file as plaintext,
generally with an extension of .txt to convince the
browser likewise.
This handler's security/featurefulness tradeoff level is
5 (Moderate.) It requires openflax.handler.file.
| serve/1 | Serves a text file generated from another file. |
| start/1 | Initializes the view-as-text subsystem. |
| stop/1 | Shuts down the view-as-text subsystem. |
serve(Conf::conf()) -> {response(), conf()}
Serves a text file generated from another file.
Initializes the view-as-text subsystem.
Shuts down the view-as-text subsystem.