Crawly v0.9.0 Crawly.Request View Source
Request wrapper
Defines Crawly request structure.
Link to this section Summary
Functions
Create new Crawly.Request from url, headers and options
Same as Crawly.Request.new/3 from but allows to specify middlewares as the 4th parameter.
Link to this section Types
Link to this type
header()
View Source
header()
View Source
header() :: {key(), value()}
header() :: {key(), value()}
Link to this type
option() View Source
Link to this type
t()
View Source
t()
View Source
t() :: %Crawly.Request{
headers: [header()],
middlewares: [atom()],
options: [option()],
prev_response: %{},
retries: non_neg_integer(),
url: url()
}
t() :: %Crawly.Request{
headers: [header()],
middlewares: [atom()],
options: [option()],
prev_response: %{},
retries: non_neg_integer(),
url: url()
}
Link to this type
url()
View Source
url()
View Source
url() :: binary()
url() :: binary()
Link to this section Functions
Link to this function
new(url, headers \\ [], options \\ []) View Source
Create new Crawly.Request from url, headers and options
Link to this function
new(url, headers, options, middlewares) View Source
Same as Crawly.Request.new/3 from but allows to specify middlewares as the 4th parameter.