The getHeader method always returns an array, but it may be empty.
For documentation purpose, we assume that the response object always contains the queried header, thus providing at least one element in the array at index 0.
The extra trailing quote marks are unnecessary/invalid, and break the syntax highlighting in the example (and would cause a syntax error in actual code).
I've now removed the bundled CA bundle and will scan for a
CA bundle when using the PHP stream wrapper on PHP < 5.6.
This change will still work out of the box for most users,
but may require users on Mac or Windows to manually configure
a CA bundle using the `verify` request option or the
openssl.cafile ini setting.
- Removing getConfig() and setConfig() from clients to avoid confusion around
whether things like base_url, message_factory, etc should be able to be
retrieved from getConfig() or modified using setConfig().
- Adding getDefaults() and setDefaultValue() to customize default request
options of a client.
- Updating Url class to check if a scheme and host are set before adding
":" and "//". This allows empty Url (e.g., "") to be serialized as "".
- Removing dead code from Url class.
- Adding a functions.php function for get_path and set_path so that these
functions can be used on regular PHP arrays. Collection now proxies to these
functions when Collection::(get|set)Path() is called.
- Resolves#599.
- Instead of using a HeaderValues object for header values, I've added an
optional argument to getHeader() that specifies whether or not to return
a header as a string or an array.
- Adding the start of the new documentation.