Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Make the action taken when a required header is missing configurable. #2

@DevL

Description

@DevL
  • given an atom -> look up the Plug.Conn.Status code.
  • given an integer -> treat it as a status code.
  • given a function -> invoke the function and pass it the conn struct and the missing header/connection key pair. Check the arity.
  • given a content-type and a body, respond using that content-type and body.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions