Skip to content

Commit

Permalink
[Doc] Use autoclass in topics/request-response.rst (scrapy#4055)
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta authored and Gallaecio committed Oct 2, 2019
1 parent 1650812 commit 6ad5a89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/request-response.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ below in :ref:`topics-request-response-ref-request-subclasses` and
Request objects
===============

.. class:: Request(url[, callback, method='GET', headers, body, cookies, meta, encoding='utf-8', priority=0, dont_filter=False, errback, flags, cb_kwargs])
.. autoclass:: Request

A :class:`Request` object represents an HTTP request, which is usually
generated in the Spider and executed by the Downloader, and thus generating
Expand Down Expand Up @@ -400,7 +400,7 @@ fields with form data from :class:`Response` objects.

.. class:: FormRequest(url, [formdata, ...])

The :class:`FormRequest` class adds a new argument to the constructor. The
The :class:`FormRequest` class adds a new keyword parameter to the constructor. The
remaining arguments are the same as for the :class:`Request` class and are
not documented here.

Expand Down Expand Up @@ -547,7 +547,7 @@ dealing with JSON requests.

.. class:: JsonRequest(url, [... data, dumps_kwargs])

The :class:`JsonRequest` class adds two new argument to the constructor. The
The :class:`JsonRequest` class adds two new keyword parameters to the constructor. The
remaining arguments are the same as for the :class:`Request` class and are
not documented here.

Expand Down Expand Up @@ -581,7 +581,7 @@ Sending a JSON POST request with a JSON payload::
Response objects
================

.. class:: Response(url, [status=200, headers=None, body=b'', flags=None, request=None])
.. autoclass:: Response

A :class:`Response` object represents an HTTP response, which is usually
downloaded (by the Downloader) and fed to the Spiders for processing.
Expand Down

0 comments on commit 6ad5a89

Please sign in to comment.