Hermes.HTTP (hermes_mcp v0.2.3)

HTTP utilities.

Summary

Functions

build(method, url, headers \\ %{}, body \\ nil, opts \\ [])

follow_redirect(request, attempts \\ 3)

@spec follow_redirect(Finch.Request.t(), number()) ::
  {:ok, Finch.Response.t()} | {:error, term()}

post(url, headers \\ %{}, body \\ nil)

Performs a POST request to the given URL.