Skip to content

feat(fetch): expose Body size#49

Merged
medz merged 1 commit into
mainfrom
feat/body-size
Jun 23, 2026
Merged

feat(fetch): expose Body size#49
medz merged 1 commit into
mainfrom
feat/body-size

Conversation

@medz

@medz medz commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Body.size as a public int? byte-length property.
  • Preserve known sizes for Block-backed bodies and encoded FormData bodies without consuming them.
  • Return null for arbitrary stream-backed bodies where the length is not known synchronously.

Validation

  • dart format --output=none --set-exit-if-changed .
  • dart analyze
  • dart test -p vm -p node -p chrome

No linked issue.

@medz medz added the enhancement New feature or request label Jun 23, 2026 — with ChatGPT Codex Connector
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@medz, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 56 minutes and 36 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 44d153a5-4fe7-40b5-8082-0ea390ea564e

📥 Commits

Reviewing files that changed from the base of the PR and between 660f5ab and e918188.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • lib/src/fetch/body.dart
  • test/body_test.dart
  • test/public_api_surface_test.dart
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/body-size

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@medz medz merged commit ae01032 into main Jun 23, 2026
2 checks passed
@medz medz deleted the feat/body-size branch June 23, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant