playframework / playframework/play-ws

Add multipart-form data to standalone client

Open
#126 9 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:backlog
Dominant language
Scala
Stars
224
Forks
92
Avg merge
1d 19h
Merged PRs (30d)
28

Description

Currently the standalone client does not have built in support for multiform post. The functionality is actually in Play-WS in the main project, under https://github.com/playframework/playframework/blob/master/framework/src/play-ahc-ws/src/main/java/play/libs/ws/ahc/AhcWSRequest.java#L44

Because the goal of the standalone client is not to have a dependencies on Play, we'll have to copy it and add it as BodyWritable and BodyReadable:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the multipart implementation in Play-WS's framework/src/play-ahc-ws/src/main/java/play/libs/ws/ahc/AhcWSRequest.java around line 44. Then inspect the standalone client's existing BodyWritable and BodyReadable types and determine how to provide equivalent multipart form support without a Play dependency; done means standalone multipart POSTs are supported through those types.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.