GetPluginClassLoader() : PluginClassLocator Set an alternate implementation for the plugin class loader. SetPluginClassLoader(PluginClassLocator $pluginClassLoader) : self Parses a string for headers, and aggregates them, in order, a new Headers instance, primarily as strings until they are needed (they will be lazy loaded). Static fromString(string $string) : Headers PluginClassLocator: Zend\Loader\PluginClassLocator.HeaderInterface: Zend\Http\Header\HeaderInterface.Forīrevity, we map the following references to the following classes or namespaces: The following is a list of methods available to Zend\Http\Headers. Individual headers it contains using the provided public API methods outlined in Now that you have an instance of Zend\Http\Headers, you can manipulate the $headers is now populated with three objects $headers = Headers::fromString($headerString) Zend\Http\Headers can also extract headers from a string: use Zend\Http\Headers $responseHeaders = $client->getResponse()->getHeaders() The same method also works for retrieving Response headers ![]() $requestHeaders = $client->getRequest()->getHeaders() the Request object and then calling getHeaders on it You can retrieve the request headers by first retrieving $client is an instance of Zend\Http\Client The quickest way to get started interacting with header objects is by retrievingĪn already populated Headers container from a request or response instance. See the below tableįor a list of the various HTTP headers and the API that is specific to each Implemented as a Zend\Http\Header\GenericHeader instance. If a header of unknown type is encountered, it will be Implementations for the various types of headers that one might encounter during The class under the Zend\Http\Header namespace are the domain specific Zend\Http\Header\HeaderInterface instances as to reduce the overhead of header The Headers container will lazily load actual Part of a Zend\Http\Request or Zend\Http\Response instance, via a ![]() Zend\Http\Headers is a container for HTTP headers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |