Lines Matching refs:a

4 This library provides a toolkit to make working with the HTTP protocol easier.
6 Most PHP scripts run within a HTTP request but accessing information about the
10 effectively a wrapper around the following PHP constructs:
24 What this library provides, is a `Request` object, and a `Response` object.
40 or edit a `composer.json` file, and make sure it contains something like this:
55 This library came to existence in 2009, as a part of the [`sabre/dav`][2]
58 It got split off into a separate library to make it easier to manage
61 Although completely independently developed, this library has a LOT of
64 Said library does a lot more stuff and is significantly more popular,
73 instantiate a request object is as follows:
125 application, if you for example would like them to carry a bit more
135 2. The `Sapi::getRequest` factory always returns a instance of
162 somewhere else, by some other subsystem. This could simply be a call like
164 but could also be somewhere in a unittest.
166 All we know in the current subsystem, is that we received a `$request` and
181 This package also contains a simple wrapper around [cURL][4], which will allow
185 It's by no means a replacement for something like [Guzzle][7], but it provides
186 a simple and lightweight API for making the occasional API call.
209 // You could use beforeRequest to for example inject a few extra headers.
216 // The afterRequest event could be a good time to do some logging, or
223 // The error event is triggered for every response with a HTTP code higher
231 // to inject HTTP authentication headers if a 401 was returned.
246 if you need to perform a number of requests, that are allowed to be executed
250 but this provides a much nicer API to handle this.
274 // Wait for all requests to get a result.
281 Writing a reverse proxy
284 With all these tools combined, it becomes very easy to write a simple reverse
295 // The url we're proxying from. Please note that this must be a relative url,
298 // If youre $remoteUrl doesn't end with a slash, this one probably shouldn't
393 * Sets a base url.
408 * with a slash, so it will always return something like
417 * If the path is outside of the base url, a LogicException will be thrown.
473 * Returns the body as a readable stream resource.
483 * Returns the body as a string.
485 * Note that because the underlying data may be based on a stream, this
495 * This could be either a string or a stream.
502 * Updates the body resource with a new stream.
517 * Returns a specific HTTP header, based on it's name.
529 * Updates a HTTP header.
550 * Adds a new set of HTTP headers.
561 * Removes a HTTP header.
617 * Returns the body as a readable stream resource.
627 * Returns the body as a string.
629 * Note that because the underlying data may be based on a stream, this
639 * This could be either a string or a stream.
647 * Updates the body resource with a new stream.
662 * Returns a specific HTTP header, based on it's name.
674 * Updates a HTTP header.
695 * Adds a new set of HTTP headers.
706 * Removes a HTTP header.
737 This library is being developed by [fruux](https://fruux.com/). Drop us a line for commercial servi…