UrlFetcher v0.2.1 UrlFetcher.Http.Client behaviour View Source

Behaviour adapter for HTTP clients

Link to this section Summary

Callbacks

Gets HTML body of a given URL.

Link to this section Types

Link to this section Callbacks

Specs

get(url :: url(), options :: [{:key, any()}]) ::
  {:ok, body()} | {:error, term()}

Gets HTML body of a given URL.

By default, HTTP Client should follow redirects.

Parameters

  • url: url string of the page to fetch
  • options: keyword list of options passed to the http client