Skip to content

Instantly share code, notes, and snippets.

@richo
Created January 14, 2013 01:26
Show Gist options
  • Save richo/4527155 to your computer and use it in GitHub Desktop.
Save richo/4527155 to your computer and use it in GitHub Desktop.
(let ((fetcher (lambda (key)
(lambda (request)
(let ((val (assoc key request)))
(if key
(cdr val)
#f))))))
(define get-request-method (fetcher 'method))
(define get-request-path (fetcher 'path))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment