Skip to content

Use ktor instead of okhttp #72

@rfc2822

Description

@rfc2822

Mainly to get suspending requests so that we don't have to do runInterruptible { } in DAVx5 for every request.

Also we become more independent of the HTTP engine and it's also a step in the direction of supporting more platforms.

Current idea for a steady transition:

  1. Test Ktor in other projects and get used to it.
  2. At some time, move all existing dav4jvm code into a new at.bitfire.dav4jvm.okhttp package.
  3. Create new classes (DavResource, …) based on Ktor in at.bitfire.dav4jvm.ktor.
  4. Use that classes for certain purposes in DAVx5, like WebDAV only.
  5. When all functionality is available and stable in Ktor, deprecate the old package / remove it at some time.
  6. (If it really works on other platforms, the repo could also be renamed then to make clear that it's not only for Android/JVM anymore. However maybe there are still other dependencies that are only available on Android/JVM yet.)

Depends on #80

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions