SendRequestFunction
Index
Methods
Methods
__call__
- Call send request function. - Parameters- url: str- The URL to send the request to. 
- optionalkeyword-onlymethod: HttpMethod = 'GET'- The HTTP method to use. 
- optionalkeyword-onlypayload: HttpPayload | None = None- The payload to include in the request. 
- optionalkeyword-onlyheaders: (HttpHeaders | dict[str, str]) | None = None- The headers to include in the request. 
 - Returns Coroutine[None, None, HttpResponse]
A function for sending HTTP requests.
It simplifies the process of sending HTTP requests. It is implemented by the crawling context and is used within request handlers to send additional HTTP requests to target URLs.