Skip to content

Commit a75156f

Browse files
authored
PATCH Method with no Body (#2770)
* refactor(core, tests): standardize method visibility and add HTTP/1.0 body handling tests - Changed `@BeforeAll` and `@AfterAll` annotations to non-static for consistency. - Reorganized test setup and teardown logic to ensure proper resource management. - Added test cases for HTTP/1.0 requests with and without bodies. - Introduced `PATCH_EMPTY_BODY` and improved input stream naming for clarity. - Updated `shouldNotContainBody` logic to handle HTTP/1.0 requests correctly. * refactor(tests): update constants, improve teardown, and standardize variable declarations * refactor(core, tests): encapsulate `method` and `uri` fields in `Request` - Replaced direct field access with `setMethod` and `setUri` to improve encapsulation. - Adjusted `RequestTest` to use setters for `method` and `uri`. * refactor(core): replace `add` with `setContentType` in `Request.Builder` for header consistency
1 parent 86be3d7 commit a75156f

3 files changed

Lines changed: 388 additions & 342 deletions

File tree

0 commit comments

Comments
 (0)