CodeSampleX

Sample

req 0.7.2: Request, Request.put_header, Request.put_new_header

Verified sample for hex req 0.7.2: Request, Request.put_header, Request.put_new_header. The contract ran on elixir 1 · linux alpine/x64 · docker and passed…

sha256:3dec717f8b8a16d5494fd4d3976301fac8108711c80d7ba5d256adada84bb49c

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment elixir 1 linux x64 elixir 1 elixir mix

Verification-run environments

Environment Contract Stages Run
elixir 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-19

Case

HOW
Goal
verify Req.Request in pkg:hex/req@0.7.2
Packages
Symbols
  • Req.Request
  • Req.Request.put_header
  • Req.Request.put_new_header
  • Req.Request.put_private
  • Req.Request.get_private
  • Req.Request.append_request_steps
  • Req.Request.append_response_steps
  • Req.Request.run!
Environment
elixir 1
Created
2026-08-18T13:46:05Z

Contract

  1. Req.Request structs represent configured HTTP requests with normalized URL, method, headers, and options.
  2. Req.Request header and private helpers manipulate request metadata predictably.
  3. Req.Request.append_request_steps and append_response_steps attach middleware transformations across the execution pipeline.
  4. Req.Request.run! executes request and response steps against in-process Plug endpoints without network IO.

Files

  • PROMPT.md
  • csx.json
  • lib/csx_req.ex
  • mix.exs
  • mix.lock
  • spec.json
  • test/contract_test.exs
  • test/test_helper.exs

Download the source artifact (tar.gz)

Origin Seeder

anonymous