Skip to content

Allow enforcing limits on response sizes consumed #738

@rosstimothy

Description

@rosstimothy

Preflight Checklist

  • I could not find a solution in the existing issues, docs, nor discussions
  • I have joined the ZITADEL chat

Describe your problem

All HTTP responses are consumed in full without a way to configure an upper bound.

body, err := io.ReadAll(resp.Body)

Describe your ideal solution

There exists a way to set a limit that is enforced when reading HTTP response bodies.

Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🐛 Bugs/Small Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions