def request(self,<EOL>url: str,<EOL>method: str = '<STR_LIT:GET>',<EOL>*,<EOL>callback=None,<EOL>encoding: typing.Optional[str] = None,<EOL>headers: dict = None,<EOL>metadata: dict = None,<EOL>request_config: dict = None,<EOL>request_session=None,<EOL>**kwargs):
headers = headers or {}<EOL>metadata = metadata or {}<EOL>request_config = request_config or {}<EOL>request_session = request_session or self.request_session<EOL>headers.update(self.headers.copy())<EOL>request_config.update(self.request_config.copy())<EOL>kwargs.update(self.kwargs.copy())<EOL>return Request(<EOL>url=url,<EOL>method=method,<EOL>callback=callback,<EOL>encoding=encoding,<EOL>headers=headers,<EOL>metadata=metadata,<EOL>request_config=request_config,<EOL>request_session=request_session,<EOL>**kwargs)<EOL>
Init a Request class for crawling html