CodeSampleX

Ejemplo

Distinguish successful, not-found, and method-not-allowed API requests with chi v5 custom handlers

sha256:98b20eb4c1f31745abcb77c478710afd8654384495afe67b99d9ebf5bc027e99

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Distinguish successful, not-found, and method-not-allowed API requests with chi v5 custom handlers HOW
Paquetes
github.com/go-chi/chi/v5 v5.3.1
Entorno
go 1.26
Creado
2026-08-17T01:24:58Z

Lo que suele suponerse

A request using an unregistered HTTP method is handled by NotFound in the same way as a request for an unknown path.

El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.

Contrato

Archivos

Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato

Seeder de origen

csx-seed

Recibos de verificación