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

Commit 8e20476

Browse files
committed
[Docs] Fixes #40 - Check the tables in a document
1 parent f0786f9 commit 8e20476

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@ be used unless you explicitly set the connection adapter. The Socket adapter is
2828
built-in fsockopen() function, and does not require any special extensions or compilation flags.
2929

3030
The Socket adapter allows several extra configuration options that can be set using
31-
`Zend\Http\Client->setOptions()` or passed to the client constructor.
31+
`Zend\Http\Client->setOptions()` or passed to the client constructor:
32+
33+
Parameter | Description | Expected Type | Default Value
34+
-------------------|--------------------------------------------------------------------------------------|---------------|--------------
35+
persistent | Whether to use persistent TCP connections | boolean | FALSE
36+
ssltransport | SSL transport layer (eg. 'sslv2', 'tls') | string | ssl
37+
sslcert | Path to a PEM encoded SSL certificate | string | NULL
38+
sslpassphrase | Passphrase for the SSL certificate file | string | NULL
39+
sslverifypeer | Whether to verify the SSL peer | string | TRUE
40+
sslcapath | Path to SSL certificate directory | string | NULL
41+
sslallowselfsigned | Whether to allow self-signed certificates | string | FALSE
42+
sslusecontext | Enables proxied connections to use SSL even if the proxy connection itself does not. | boolean | FALSE
3243

3344
> ## Note
3445
#### Persistent TCP Connections
@@ -148,6 +159,14 @@ security or performance reasons.
148159
Using the Proxy adapter requires several additional configuration parameters to be set, in addition
149160
to the default 'adapter' option:
150161

162+
Parameter | Description | Expected Type | Example Value
163+
-------------|--------------------------------|---------------|--------------
164+
`proxy_host` | Proxy server address | string | 'proxy.myhost.com'’ or '10.1.2.3'
165+
`proxy_port` | Proxy server TCP port | integer | 8080 (default) or 81
166+
`proxy_user` | Proxy user name, if required | string | 'shahar' or '' for none (default)
167+
`proxy_pass` | Proxy password, if required | string | 'secret' or '' for none (default)
168+
`proxy_auth` | Proxy HTTP authentication type | string | `Zend\Http\Client::AUTH_BASIC` (default)
169+
151170
`proxy_host` should always be set - if it is not set, the client will fall back to a direct
152171
connection using `Zend\Http\Client\Adapter\Socket`. `proxy_port` defaults to '8080' - if your proxy
153172
listens on a different port you must set this one as well.

doc/book/zend.http.client.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ The constructor and setOptions() method accepts an associative array of configur
6767
a `Zend\Config\Config` object. Setting these parameters is optional, as they all have default
6868
values.
6969

70+
Parameter | Description | Expected Values | Default Value
71+
------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|--------------
72+
`maxredirects` | Maximum number of redirections to follow (0 = none) | integer | 5
73+
`strictredirects` | Whether to strictly follow the RFC when redirecting (see this section) | boolean | FALSE
74+
`useragent` | User agent identifier string (sent in request headers) | string | `Zend\Http\Client`
75+
`timeout` | Connection timeout (seconds) | integer | 10
76+
`httpversion` | HTTP protocol version (usually '1.1' or '1.0') | string | 1.1
77+
`adapter` | Connection adapter class to use (see this section) | mixed | `Zend\Http\Client\Adapter\Socket`
78+
`keepalive` | Whether to enable keep-alive connections with the server. Useful and might improve performance if several consecutive requests to the same server are performed. | boolean | FALSE
79+
`storeresponse` | Whether to store last response for later retrieval with getLastResponse(). If set to FALSE, getLastResponse() will return NULL. | boolean | TRUE
80+
`encodecookies` | Whether to pass the cookie value through urlencode/urldecode. Enabling this breaks support with some web servers. Disabling this limits the range of values the cookies can contain. | boolean | TRUE
81+
`outputstream` | Destination for streaming of received data (options: string (filename), true for temp file, false/null to disable streaming) | boolean | FALSE
82+
`rfc3986strict` | Whether to strictly adhere to RFC 3986 (in practice, this means replacing '+' with '%20') | boolean | FALSE
83+
7084
The options are also passed to the adapter class upon instantiation, so the same array or
7185
`Zend\Config\Config` object) can be used for adapter configuration. See the Zend Http Client adapter
7286
section<zend.http.client.adapters> for more information on the adapter-specific options

0 commit comments

Comments
 (0)