Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 9fd27d3

Browse files
committed
Merge pull request #45 from froschdesign/hotfix/docs/41
[Docs] Fixes #41 - Check For Blockquotes In Docs
2 parents 08bb017 + f1bf9f9 commit 9fd27d3

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

doc/book/zend.http.client.adapters.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ built-in fsockopen() function, and does not require any special extensions or co
3030
The Socket adapter allows several extra configuration options that can be set using
3131
`Zend\Http\Client->setOptions()` or passed to the client constructor.
3232

33-
> ## Note
33+
> ### Note
3434
#### Persistent TCP Connections
3535
Using persistent *TCP* connections can potentially speed up *HTTP* requests - but in most use cases,
3636
will have little positive effect and might overload the *HTTP* server you are connecting to.
@@ -41,7 +41,8 @@ both the client speed and server load before using this option.
4141
Additionally, when using persistent connections it is recommended to enable Keep-Alive *HTTP*
4242
requests as described in \[the configuration section\](zend.http.client.options)- otherwise
4343
persistent connections might have little or no effect.
44-
#### note
44+
45+
> ### Note
4546
#### HTTPS SSL Stream Parameters
4647
`ssltransport`, `sslcert` and `sslpassphrase` are only relevant when connecting using *HTTPS*.
4748
While the default *SSL* settings should work for most applications, you might need to change them if
@@ -132,7 +133,7 @@ $opts = stream_context_get_options($adapter->getStreamContext());
132133
echo $opts['ssl']['peer_certificate'];
133134
```
134135

135-
> ## Note
136+
> ### Note
136137
Note that you must set any stream context options before using the adapter to perform actual
137138
requests. If no context is set before performing *HTTP* requests with the Socket adapter, a default
138139
stream context will be created. This context resource could be accessed after performing any
@@ -182,7 +183,7 @@ As mentioned, if `proxy_host` is not set or is set to a blank string, the connec
182183
to a regular direct connection. This allows you to easily write your application in a way that
183184
allows a proxy to be used optionally, according to a configuration parameter.
184185

185-
> ## Note
186+
> ### Note
186187
Since the proxy adapter inherits from `Zend\Http\Client\Adapter\Socket`, you can use the stream
187188
context access method (see \[this section\](zend.http.client.adapters.socket.streamcontext)) to set
188189
stream context options on Proxy connections as demonstrated above.

doc/book/zend.http.client.advanced.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ on the server side. In the second example, the existing file `/tmp/Backup.tar.gz
182182
server and will be available as `$_FILES['bufile']`. The content type will be guessed automatically
183183
if possible - and if not, the content type will be set to 'application/octet-stream'.
184184

185-
> ## Note
185+
> ### Note
186186
#### Uploading files
187187
When uploading files, the *HTTP* request content-type is automatically set to multipart/form-data.
188188
Keep in mind that you must send a POST or PUT request in order to upload files. Most servers will
@@ -211,7 +211,7 @@ $client->send();
211211
The data should be available on the server side through *PHP*'s `$HTTP_RAW_POST_DATA` variable or
212212
through the `php://input` stream.
213213

214-
> ## Note
214+
> ### Note
215215
#### Using raw POST data
216216
Setting raw POST data for a request will override any POST parameters or file uploads. You should
217217
not try to use both on the same request. Keep in mind that most servers will ignore the request body
@@ -255,7 +255,7 @@ request-specific parameters are cleared, you should use the `resetParameters()`
255255
that GET and POST parameters, request body and headers are reset and are not reused in the next
256256
request.
257257

258-
> ## Note
258+
> ### Note
259259
#### Resetting parameters
260260
Note that cookies are not reset by default when the `resetParameters()` method is used. To clean all
261261
cookies as well, use `resetParameters(true)`, or call `clearCookies()` after calling

doc/book/zend.http.client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $client = new Client();
5757
$response = $client->send($request);
5858
```
5959

60-
> ## Note
60+
> ### Note
6161
`Zend\Http\Client` uses `Zend\Uri\Http` to validate URLs. See the Zend\\\\Uri manual
6262
page<zend.uri> for more information on the validation process.
6363

0 commit comments

Comments
 (0)