A collection of req/res functions that I have found myself copy pastaing around.
I am trying to separate the pasta into useful strands.
opts.log is an optional log function to be used implace of gen-pasta's log. Returns object p w/ all other methods.
Takes a responce and returns a function that takes an error and optional error code.
Create a function that responds 302 to url.
Add cors headers.
405 method not allowed, what is?
Returns a function that dispatches a req/res to the correct function for that method.