Packages

Ewebmachine contains macros and plugs to allow you to compose HTTP decision handlers and run the HTTP decision tree to get your HTTP response. This project is a rewrite for Elixir and Plug of basho webmachine.

Current section

Files

Jump to
ewebmachine lib ewebmachine.ex
Raw

lib/ewebmachine.ex

defmodule Ewebmachine do
alias Plug.Conn
@moduledoc (File.read!("README.md")
|>String.replace(~r/^See the \[generated.*$/m,"")
|>String.replace(~r/^.*Build Status.*$/m,"")
|>String.replace("https://raw.githubusercontent.com/awetzel/ewebmachine/master/doc/",""))
def do_redirect(conn), do:
Conn.put_private(conn, :resp_redirect, true)
end