Current section
Files
Jump to
Current section
Files
lib/hafnium/req/method.ex
defmodule Hafnium.Req.Method do
@moduledoc """
Method
"""
use Hafnium.Middleware
@impl true
def pipe(%H{context: [], req: %Req{} = req, option: method} = o) when is_http_method(method) do
%{o | req: %{req | method: method}, context: [1]}
end
def pipe(o), do: pipe_fallback(o)
end