SuperAPI AI Directory

requests

Coding & development

View repository

Updated 10-15 16:48

About this skill

Requests

Use this skill for inbound HTTP request parsing and validation.

Workflow

  1. Type all handler parameters explicitly.
  2. Use parameter helpers for headers/cookies/query aliases and constraints.
  3. Validate body payloads via DTO/dataclass/msgspec/pydantic models.
  4. Keep transport validation in handlers and business rules in services.

Checklist

  • Avoid untyped dict request payloads when schema is known.
  • Use narrow types for booleans, enums, UUIDs, and datetimes.
  • Handle malformed input with deterministic 4xx responses.

Litestar References