Removal/Modification of response headers

Open
#246 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Python
Stars
786
Forks
163
Avg merge
4h
Merged PRs (30d)
22

Getting set up

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.

More from aws/bedrock-agentcore-sdk-python

All issues in aws/bedrock-agentcore-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.