aws / aws/bedrock-agentcore-sdk-python

Removal/Modification of response headers

Open
#246 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
761
Forks
147
Avg merge
1d 23h
Merged PRs (30d)
7

Description

**Is your feature request related to a problem? Please describe.**
Noticing that when trying to use response streaming via API Gateway, the underlying AgentCore mechanisms (Starlette?) is buffering and returning Content-Length header which appears to be possibly negating the API gateway response streaming capability (HTTP proxy) .

**Describe the solution you'd like**
Ability to modify content headers or remove Content-Length, etc when required.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by tracing response streaming and response-header generation in the Python SDK's API Gateway integration, then determine how headers can be modified or removed without disabling streaming. Done means callers can control relevant headers, including removing Content-Length when needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.