Crawly v0.9.0 Crawly.Fetchers.Fetcher behaviour 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

Link to this callback

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