Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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