Repository navigation
feat: raw content statuses, renderer fallback and configurable body limit - #128
Merged
Merged
Conversation
sahenjp
enabled auto-merge (squash)
November 8, 2026 13:39
…imit - report raw_content_status (ok, not_requested, too_large, fetch_failed, robots_blocked, extract_failed, render_failed, unknown) and a short raw_content_error on every include_raw_content result, so clients can decide retry or give-up from the response alone - keep the static page text when the JavaScript renderer fails (page_renderer_fallback = static, default) and say what happened - expose the decoded body limit as raw_content_max_bytes (default 4 MiB, bounded at 32 MiB) for large public documents Closes #120, closes #121, closes #122
sahenjp
force-pushed
the
feat/raw-content-statuses
branch
from
November 8, 2026 13:48
fbe4413 to
ea83c34
Compare
4 tasks
sahenjp
pushed a commit
that referenced
this pull request
Nov 8, 2026
🤖 I have created a release *beep* *boop* --- ## [0.31.0](v0.30.0...v0.31.0) (2026-11-08) ### Features * raw content statuses, renderer fallback and configurable body limit ([#128](#128)) ([b893f1d](b893f1d)) ### Bug Fixes * **release:** recover image publishing for already-published releases ([#117](#117)) ([5535a15](5535a15)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要:include_raw_content=1 の結果に、本文の有無と理由を分かる形で返し、レンダラー失敗時や大きなページでも困らないようにします。
変更:各結果に raw_content_status(ok / not_requested / too_large / fetch_failed / robots_blocked / extract_failed / render_failed / unknown)と短い raw_content_error を追加。レンダラー失敗時は既定で静的HTMLの本文を保持する page_renderer_fallback を追加。本文上限を raw_content_max_bytes(既定4MiB・上限32MiB)として設定可能に。
検証:cargo test --all-features(新規テスト含む)と cargo check がすべて合格。
注意点:既定は 4 MiB と static のままなので、既存クライアントと設定の挙動は変わりません。
Closes #120, closes #121, closes #122