Created
April 12, 2014 16:12
-
-
Save ijp/10543607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(save-module-excursion | |
(lambda () | |
(set-current-module (resolve-module '(web client))) | |
(eval '(define (extend-request r k v . additional) | |
(let ((r (build-request (request-uri r) | |
#:method (request-method r) | |
#:version (request-version r) | |
#:headers | |
(assoc-set! (copy-tree (request-headers r)) | |
k v) | |
#:port (request-port r) | |
#:meta (request-meta r)))) | |
(if (null? additional) | |
r | |
(apply extend-request r additional)))) | |
(current-module)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment