CodeSampleX

サンプル

reqwest 0.12.28: Store and scope HTTP cookies with path boundaries, domain matching, secure-transport filtering, and key overwriting in reqwest::cookie::Jar

検証済みサンプル — cargo reqwest 0.12.28: Store and scope HTTP cookies with path boundaries, domain matching, secure-transport filtering, and key overwriting in…

sha256:90ee870d129e5939734d524e93afaf69412a76edf484108a7e622d15e9b84015

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 rust linux x64 rust rust cargo

検証実行環境

環境 コントラクト ステージ 実行日
rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-17
rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · cargo@1
2026-08-18

ケース

HOW
ゴール
Store and scope HTTP cookies with path boundaries, domain matching, secure-transport filtering, and key overwriting in reqwest::cookie::Jar
パッケージ
シンボル
  • reqwest::cookie::Jar
  • reqwest::cookie::CookieStore
環境
rust
作成日
2026-08-17T20:19:46Z

コントラクト

  1. reqwest::cookie::Jar stores cookies matching path prefixes and domain boundaries, withholds Secure cookies on unencrypted HTTP URLs, and replaces existing entries on duplicate name and path.
  2. test_secure_cookie_withheld_on_http: Jar::cookies returns Some only on https and None on http for Secure cookies
  3. test_path_scoping: Jar::cookies returns Some for subpaths of Path and None for sibling paths
  4. test_host_only_vs_domain_cookie: domain cookies match subdomains while host-only cookies do not match subdomains or foreign domains
  5. test_cookie_overwrite_and_eviction: re-inserting an identical name and path updates the value and Max-Age=0 evicts the entry

ファイル

  • Cargo.lock
  • Cargo.toml
  • NOTES.md
  • csx.json
  • src/lib.rs

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed