Skip to content

Add multipart request body support #61

Description

@OmarAlJarrah

Problem

There's no multipart body type, which form/file uploads need.

Proposed change

Add a MultipartRequestBody writing to a BufferedSink, with a single shared frame-size function used by both writeTo and contentLength (avoid two independent literals drifting). File parts stream zero-copy via FileRequestBody; non-file parts serialize via the Serde SPI. No Jackson in core.

Acceptance

  • Multipart body type
  • contentLength matches writeTo
  • Test

Priority: medium · Effort: large

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegenfuture KotlinPoet codegenenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions