CodeSampleX

Sample

github.com/caddyserver/caddy/v2 2.11.4: caddyhttp.RequestVarsReplacer

Verified sample for golang github.com/caddyserver/caddy/v2 2.11.4: caddyhttp.RequestVarsReplacer. The contract ran on go 1.26 · linux alpine/x64 · docker and…

sha256:511072927f862bd2fd80e80f39090c0dfcc250b111bddce5cd8735bc996579f1

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 go 1.26 linux 24 · ubuntu · glibc 2.39 x64 go 1.26 go go 1

Verification-run environments

Environment Contract Stages Run
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1
2026-08-20

Case

HOW
Goal
verify caddyhttp.RequestVarsReplacer in pkg:golang/github.com/caddyserver/caddy/v2@2.11.4
Packages
Symbols
  • caddyhttp.RequestVarsReplacer
Environment
go 1.26.6
Created
2026-08-20T12:24:59Z

Contract

  1. RequestVarsReplacer expands http.vars placeholders set via context variables
  2. RequestVarsReplacer evaluates standard HTTP request placeholders including method, host, header, and query parameters
  3. VarsMiddleware sets context variables and expands nested placeholders in variable values
  4. VarsMatcher correctly matches requests based on variable values and placeholder criteria
  5. SetVar with nil value removes the variable from the request context and replacer returns empty string

Files

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • requestvars.go
  • spec.json
  • test/contract_test.go

Download the source artifact (tar.gz)

Origin Seeder

anonymous