scrapy_cloud_ex v0.1.2 ScrapyCloudEx.Endpoints View Source
Documents commonalities between all endpoint-related functions.
Options
The last argument provided to most endpoint functions is a keyword list of options. These options are made available to the HttpAdapter during the API request.
:decoder- specifies how the response body should be processed. Can be a module implementing theScrapyCloudEx.Decoderbehaviour, or a function conforming to theScrapyCloudEx.Decoder.decoder_function/0typespec. Defaults toScrapyCloudEx.Decoders.Default.:headers- list of headers that are added to theScrapyCloudEx.HttpAdapter.RequestConfigheadersattribute provided to the HttpAdapter instance making the API call. The default HttpAdapter does not make use of this option.:http_adapter- specifies the module to use to make the HTTP request to the API. This module is expected to implement theScrapyCloudEx.HttpAdapterbehaviour. Defaults toScrapyCloudEx.HttpAdapters.Default.