get 'url'
post 'url', 'name' => 'john'
put
patch
delete
options
head
authorize 'user', 'pass'
env 'rack.session', csrf: 'token'
header 'Content-Type', 'text/html'
See rack/test.rb.
get 'url'
post 'url', 'name' => 'john'
put
patch
delete
options
head
authorize 'user', 'pass'
env 'rack.session', csrf: 'token'
header 'Content-Type', 'text/html'
See rack/test.rb.
Devhints.cn 速查表 is a collection of cheatsheets I've written over the years. Suggestions and corrections? Send them in. I'm Rico Sta. Cruz. Check out my Today I learned blog for more.