Commit ff0e49c
ladeak
Enhance HTTP/3 request body detection and testing
- Updated `IHttpRequestBodyDetectionFeature` to include HTTP/3 descriptions for the `END_STREAM` flag.
- Modified request body handling logic to return zero length content body instance when there endstream flag is set.
It also completes the message body for empty requests, so that the RequestBodyPipe.Reader is closed (needed when
stream is reused by the pool and the Pipe is reset).
- Added unit test `CanHaveBody_ReturnsFalseWithoutRequestBody`
to validate behavior when no request body is present.1 parent 4fccb63 commit ff0e49c
File tree
3 files changed
+51
-1
lines changed- src
- Http/Http.Features/src
- Servers/Kestrel
- Core/src/Internal/Http3
- test/InMemory.FunctionalTests/Http3
3 files changed
+51
-1
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
| |||
928 | 940 | | |
929 | 941 | | |
930 | 942 | | |
931 | | - | |
| 943 | + | |
932 | 944 | | |
933 | 945 | | |
934 | 946 | | |
| |||
975 | 987 | | |
976 | 988 | | |
977 | 989 | | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
978 | 996 | | |
979 | 997 | | |
980 | 998 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3291 | 3291 | | |
3292 | 3292 | | |
3293 | 3293 | | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
3294 | 3320 | | |
3295 | 3321 | | |
3296 | 3322 | | |
| |||
0 commit comments