1
0
Fork 0
mirror of https://github.com/edgurgel/httparrot synced 2025-04-25 07:47:11 -04:00
httparrot/lib/httparrot/deny_handler.ex
2014-07-22 20:33:22 +12:00

26 lines
552 B
Elixir

defmodule HTTParrot.DenyHandler do
@moduledoc """
Returns a simple HTML page.
"""
use HTTParrot.Cowboy, methods: ~w(GET HEAD OPTIONS)
def content_types_provided(req, state) do
{[{{"text", "plain", []}, :get_plain}], req, state}
end
@body """
.-''''''-.
.' _ _ '.
/ O O \\
: :
| |
: __ :
\ .-"` `"-. /
'. .'
'-......-'
YOU SHOUDN'T BE HERE
"""
def get_plain(req, state) do
{@body, req, state}
end
end