10000 Fix others typo · shulard/documentation@a63b9bb · GitHub
[go: up one dir, main page]

Skip to content

Commit a63b9bb

Browse files
committed
Fix others typo
1 parent 1798a5a commit a63b9bb

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

plugins/content-length.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Content-Length Plugin
44
The `ContentLengthPlugin` sets the correct `Content-Length` header value based on the size of the body stream of the
55
request. This helps HTTP servers to handle the request.
66

7-
If the size of the stream can not be determined, the plugin sets the Encoding header to chunked,as defined in
7+
If the size of the stream can not be determined, the plugin sets the Encoding header to `chunked`, as defined in
88
:rfc:`7230#section-4.1`::
99

1010
use Http\Discovery\HttpClientDiscovery;
@@ -18,9 +18,9 @@ If the size of the stream can not be determined, the plugin sets the Encoding he
1818
[$contentLengthPlugin]
1919
);
2020

21-
This plugin is useful when you want to transfer data of unknown size to an http application without consuming memory.
21+
This plugin is useful when you want to transfer data of unknown size to an HTTP application without consuming memory.
2222

23-
As an example, let's say you want to send a tar archive of the current directory to an api. Normally you would
23+
As an example, let's say you want to send a tar archive of the current directory to an API. Normally you would
2424
end up doing this in 2 steps, first saving the result of the tar archive into a file or into the memory of
2525
PHP with a variable, then sending this content with an HTTP Request.
2626

plugins/cookie.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Cookie Plugin
22
=============
33

44
The `CookiePlugin` allow you to store cookies information in a `CookieJar` and reuse them on consequent requests according
5-
to `RFC 6265`_ specification::
5+
to :rfc:`6265#section-4` specification::
66

77
use Http\Discovery\HttpClientDiscovery;
88
use Http\Message\CookieJar;
@@ -15,5 +15,3 @@ to `RFC 6265`_ specification::
1515
HttpClientDiscovery::find(),
1616
[$cookiePlugin]
1717
);
18-
19-
.. _RFC 6265: https://tools.ietf.org/html/rfc6265

plugins/decoder.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@ headers::
1717

1818
The plugin can handle the following encodings:
1919

20-
* chunked: Decode a stream with a chunked encoding (no size in the `Content-Length` header of the response)
21-
* compress: Decode a stream encoded with the compress filter according to `RFC 1950`_
22-
* Deflate: Decode a stream encoded with the inflate filter according to `RFC 1951`_
23-
* gzip: Decode a stream encoded with the gzip filter according to `RFC 1952`_
20+
* `chunked`: Decode a stream with a `chunked` encoding (no size in the `Content-Length` header of the response)
21+
* `compress`: Decode a stream encoded with the `compress` encoding according to :rfc:`1950`
22+
* `deflate`: Decode a stream encoded with the `inflate` encoding according to :rfc:`1951`
23+
* `gzip`: Decode a stream encoded with the `gzip` encoding according to :rfc:`1952`
2424

2525
You can also use the decoder plugin to decode only the `Transfer-Encoding` header and not the `Content-Encoding` one
2626
by setting the first parameter of the constructor to false::
2727

2828
$decoderPlugin = new DecoderPlugin(false);
2929

3030
This is useful when you want to get the encoded response body, or acting as a proxy.
31-
32-
.. _RFC 1950: https://tools.ietf.org/html/rfc1950
33-
.. _RFC 1951: https://tools.ietf.org/html/rfc1951
34-
.. _RFC 1952: https://tools.ietf.org/html/rfc1952

0 commit comments

Comments
 (0)
0