Commit 15a5588
committed
Model URIs and move request-target details to Request
Per @evert on the mailing list, this patch accomplishes a few things:
- `UriTargetInterface` was renamed to `UriInterface`, and modified to
remove the various references to request-targets (particularly the
`is*()` methods). The URI will always be necessary for making
requests, and is generally of use on server-side requests as well,
regardless of its representation in the actual request message.
- `RequestInterface` was updated to reference `UriInterface` instead of
`UriTargetInterface`.
- `RequestInterface` was updated to add the methods `getRequestLine()`
and `withRequestLine($requestLine)`. The first will return the request
line as calculated or as set with `withRequestLine()`; this allows
users to specify the alternate request-target forms when desired,
while keeping those details out of the URI implementation.
Additionally, that change will ensure that clients always have the
full URI, which will be necessary when establishing an actual
connection, regardless of the request-target form.1 parent 29f8185 commit 15a5588
2 files changed
+65
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
23 | 75 | | |
24 | 76 | | |
25 | 77 | | |
| |||
47 | 99 | | |
48 | 100 | | |
49 | 101 | | |
50 | | - | |
| 102 | + | |
51 | 103 | | |
52 | 104 | | |
53 | | - | |
| 105 | + | |
54 | 106 | | |
55 | 107 | | |
56 | 108 | | |
| |||
60 | 112 | | |
61 | 113 | | |
62 | 114 | | |
63 | | - | |
| 115 | + | |
64 | 116 | | |
65 | 117 | | |
66 | | - | |
| 118 | + | |
67 | 119 | | |
68 | 120 | | |
69 | | - | |
| 121 | + | |
70 | 122 | | |
Lines changed: 8 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
33 | 18 | | |
34 | 19 | | |
35 | | - | |
36 | 20 | | |
37 | | - | |
| 21 | + | |
38 | 22 | | |
39 | 23 | | |
40 | 24 | | |
| |||
262 | 246 | | |
263 | 247 | | |
264 | 248 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 249 | | |
312 | 250 | | |
313 | 251 | | |
| |||
0 commit comments