Crawly.Fetchers.Fetcher behaviour (Crawly v0.17.0) View Source

A behavior module for defining Crawly Fetchers

A fetcher is expected to implement a fetch callback which should take Crawly.Request, HTTP client options and return Crawly.Response.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Specs

fetch(request, options) :: {:ok, response} | {:error, reason}
when request: Crawly.Request.t(),
     response: Crawly.Response.t(),
     options: keyword(),
     reason: term()