Lines Matching refs:to

4 This library provides a toolkit to make working with the HTTP protocol easier.
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
65 so if you are looking for something to fulfill this particular requirement,
72 First and foremost, this library wraps the superglobals. The easiest way to
124 It may be useful to extend the `Request` and `Response` objects in your
125 application, if you for example would like them to carry a bit more
128 For instance, you may want to add an `isLoggedIn` method to the Request
133 1. You may want to extend the objects with new behaviors differently, in
136 `Request` so you would have to override the factory method as well,
138 `Response` instances in your library or application, you make it harder to
141 In short: it would be bad design. Instead, it's recommended to use the
142 [decorator pattern][6] to add new behavior where you need it. `sabre/http`
143 provides helper classes to quickly do this.
168 all we need to do is:
174 And that's it, we now have an `isLoggedIn` method, without having to mess
182 you to write simple clients, using the `Request` and `Response` objects you're
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
231 // to inject HTTP authentication headers if a 401 was returned.
234 // We're only going to retry exactly once.
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.
284 With all these tools combined, it becomes very easy to write a simple reverse
292 // The url we're proxying to.
316 // Sends the HTTP request to the server
319 // Sends the response back to the client that connected to the proxy.
397 * The base url should default to /
411 * If the full path is equal to the base url, this method will return an
415 * ISO-8859-1, it will convert it to UTF-8.
426 * This is equivalent to PHP's $_GET superglobal.
435 * This is equivalent to PHP's $_POST superglobal.
444 * This is equivalent to PHP's $_POST superglobal.
447 * php://input, but unfortunately we need to special case it.