Current section

Files

Jump to
crawly lib crawly request.ex
Raw

lib/crawly/request.ex

defmodule Crawly.Request do
@moduledoc """
Request wrapper
Defines Crawly request structure.
"""
defstruct url: nil, headers: [], prev_response: nil, options: []
@type header() :: {key(), value()}
@typep key :: binary()
@typep value :: binary()
@type option :: {atom(), binary()}
@type t :: %__MODULE__{
url: binary(),
headers: [header()],
prev_response: %{},
options: [option()]
}
end