Skip to content

Commit

Permalink
chore: add rack docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 24, 2024
1 parent 571e7db commit 60245c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/developer/rack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Rack

https://medium.com/quick-code/rack-middleware-vs-rack-application-vs-rack-the-gem-vs-rack-the-architecture-912cd583ed24
https://github.com/rack/rack/blob/main/SPEC.rdoc
https://www.rubyguides.com/2018/09/rack-middleware/


* Responds to `call`
* Accepts a hash of parameters
* Returns an array where the first item is the http status, the second is a hash of headers, and the third is an object that responds to `each` (or `call`) that provides the body (99% of the time it's an array of length 1 with a string)

0 comments on commit 60245c9

Please sign in to comment.