Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elli-lib/elli_xpblfe
Elli middleware to add X-Powered-By: LFE header.
https://github.com/elli-lib/elli_xpblfe
eli lfe middleware x-powered-by
Last synced: about 2 months ago
JSON representation
Elli middleware to add X-Powered-By: LFE header.
- Host: GitHub
- URL: https://github.com/elli-lib/elli_xpblfe
- Owner: elli-lib
- License: wtfpl
- Created: 2016-04-19T01:42:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T00:59:14.000Z (over 8 years ago)
- Last Synced: 2024-10-01T07:49:25.565Z (3 months ago)
- Topics: eli, lfe, middleware, x-powered-by
- Language: Erlang
- Homepage: https://elli-lib.github.io/elli_xpblfe
- Size: 58.6 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elli_xpblfe
[![Build Status](https://travis-ci.org/elli-lib/elli_xpblfe.svg?branch=master)](https://travis-ci.org/elli-lib/elli_xpblfe)
[![img](https://img.shields.io/hexpm/v/elli_xpblfe.svg)](https://hex.pm/packages/elli_xpblfe)
[![img](https://img.shields.io/badge/docs-100%25-green.svg)](https://elli-lib.github.io/elli_xpblfe)An [elli][] middleware to add the following header to all responses:
```http
X-Powered-By: LFE
```[elli]: https://github.com/knutin/elli
## Config
rebar.config:
```erlang
{elli_xpblfe, "0.1.1"}
```## Usage
Just add it to the `mods` in your `elli_middleware` callback args:
```erlang
Config = [
{mods, [
%% ...
{elli_xpblfe, []}
]}
],
elli:start_link([..., {callback, elli_middleware}, {callback_args, Config}]).
```## License
Copyright © 2016 Eric Bailey
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the [LICENSE][] file for more details.[LICENSE]: ./LICENSE