default chalice http test client with application/json header
Open
enhancement
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
```python
dataset_response = chalice_client.http.post(
'/datasets',
headers={"content-type": "application/json"},
body=json.dumps(dataset))
```
It would be nice to just default having that header.
Contributor guide
Research direction
Start by tracing the chalice_client.http.post entry point used in the issue example and inspect how request headers are assembled. Check the existing HTTP client tests, if present, for POST requests and JSON bodies; done means callers can omit the content-type header while JSON requests still receive it without breaking explicitly supplied headers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100