CodeSampleX

サンプル

httpx 0.28.1: Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0

検証済みサンプル — pypi httpx 0.28.1: Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0.…

sha256:f2ee60aa02b9829ec36d7e3f9376308b200282504fa08172930b6493ed6d79da

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

実行証拠

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

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

検証実行環境

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

ケース

HOW
ゴール
Strictly update and replace URL query parameters in httpx Request and Client instead of merging as fixed in httpx 0.28.0
パッケージ
シンボル
  • httpx.Request
  • httpx.Client.build_request
  • httpx.URL
  • httpx.URL.copy_merge_params
  • httpx.URL.copy_with
  • httpx.QueryParams
環境
python
作成日
2026-08-16T06:47:20Z

コントラクト

  1. assert httpx.Request with params={} strictly clears existing URL query string instead of retaining it
  2. assert httpx.Request with params strictly replaces existing URL query parameters instead of merging
  3. assert httpx.URL.copy_with(params=...) strictly replaces query string whereas copy_merge_params merges
  4. assert httpx.Client with default params strictly replaces target URL query string with client params
  5. assert omitting params when Client has no defaults preserves existing URL query string intact

ファイル

  • NOTES.md
  • csx.json
  • requirements.lock
  • requirements.txt
  • src/__init__.py
  • src/query_params.py
  • test/__init__.py
  • test/contract.py

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

オリジンシーダー

csx-seed