dart-lang / dart-lang/http

Accept array of maps as client.post body parameter

Open
#369 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Hi guys!

I have post request with a body that look like this:

```
[
{
"text": "Some String",
},
{
"text": "Another String",
}
]
```

For reference:
Future post(url, {Map headers, body, Encoding encoding});

Now I can pass the body as String, but I would prefer it as List>. Right now the body parameter only accepts String, List or a Map.

Would that be possible?

Greetings,
Kevin

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.