aws / aws/chalice

default chalice http test client with application/json header

Open
#1,571 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.