File changed.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
* Refactor HTTP response handling - Update `HttpResponseInfo` to handle request and response bodies more efficiently - Use `runBlocking` for suspending functions in constructors - Remove unnecessary `WillNotClose` annotations - Cleanup and streamline exception handling logic * Refactor response info extraction - Remove redundant parameters in MockEngine - Simplify HttpClient initialization - Update request excerpt formatting - Add test for request excerpt with no body - Rename test for large text content * Add support for already consumed response bodies * KDoc * Make DavException and HttpException construction non-blocking * [WIP] Remove derived exception classes * Add specific HTTP response exceptions for common status codes - Add new exception classes for common HTTP status codes: - `UnauthorizedException` (401) - `ForbiddenException` (403) - `NotFoundException` (404) - `ConflictException` (409) - `GoneException` (410) - `PreconditionFailedException` (412) - Update `ServiceUnavailableException` to handle `Retry-After` header - Update `HttpResponseInfo` to use `HttpStatusCode` instead of raw status code - Update `DavException` and `HttpException` to use `HttpResponseInfo` for response details - Update tests to reflect changes in exception handling * Improve error handling and logging in `assertMultiStatus` and `processMultiStatus` methods - Update `DavResourceTest` to use `bodyAsChannel` method for response body handling. - Move `ContentType` extension methods from `HttpResponseInfo` to `KtorHttpUtils`. - Refactor `assertMultiStatus` in `DavResource` to handle response bodies using `ByteReadChannel`. - Update `processMultiStatus` to use `ByteReadChannel` directly instead of `Reader`. - Improve error handling and logging in `assertMultiStatus` and `processMultiStatus` methods. * Refactor and optimize HTTP response handling in Ktor - Optimize condition check order for request content type and content in `HttpResponseInfo.kt`. - Update `DavResource.kt` to use `encodeToByteString` for XML signature and improve the `assertMultiStatus` function. - Enhance documentation for the `assertMultiStatus` method by clarifying parameter usage and exceptions thrown. * Minor changes * Update followRedirects * Allow streaming of DavResource calls * Follow redirects, implement streaming * Fix tests * Modify redirect status check to use specific HttpStatusCode values - Refactor HttpClient initialization to remove followRedirects = false - Update DavResource documentation to indicate that provideBody may be called multiple times on redirects
File changed.
Preview size limit exceeded, changes collapsed.