mirror of
https://github.com/edgurgel/httparrot
synced 2025-04-05 08:12:31 -04:00
Use ~W sigil where possible!
[ci skip]
This commit is contained in:
parent
5eee72d1aa
commit
c9fbb3b919
8 changed files with 8 additions and 8 deletions
|
@ -9,7 +9,7 @@ defmodule HTTParrot.CacheHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def last_modified(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.DenyHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def content_types_provided(req, state) do
|
||||
|
|
|
@ -9,7 +9,7 @@ defmodule HTTParrot.GetHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def content_types_provided(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.RedirectHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def malformed_request(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.RedirectToHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def malformed_request(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.RelativeRedirectHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def malformed_request(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.RobotsHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def content_types_provided(req, state) do
|
||||
|
|
|
@ -8,7 +8,7 @@ defmodule HTTParrot.StatusCodeHandler do
|
|||
end
|
||||
|
||||
def allowed_methods(req, state) do
|
||||
{["GET", "HEAD", "OPTIONS"], req, state}
|
||||
{~W(GET HEAD OPTIONS), req, state}
|
||||
end
|
||||
|
||||
def content_types_provided(req, state) do
|
||||
|
|
Loading…
Add table
Reference in a new issue