plug_require_header icon indicating copy to clipboard operation
plug_require_header copied to clipboard

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

Open DevL opened this issue 9 years ago • 2 comments

  • [ ] given an atom -> look up the Plug.Conn.Status code.
  • [ ] given an integer -> treat it as a status code.
  • [x] 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.

DevL avatar Mar 30 '15 07:03 DevL

Partially being addressed by #3.

DevL avatar Apr 03 '15 23:04 DevL

Addressed by #4

DevL avatar Apr 12 '15 15:04 DevL