Welcome to the CHICKEN Scheme pasting service

intarweb call-with-response added by anonymous on Fri Aug 17 13:09:11 2012

(define (play endpoint resource)
  (let* ((body (make-body resource))
	 (len (string-length body))
	 (request (make-play-request endpoint))
	 (writer (lambda (r)
		   (display "***")
		   ; add content length to request		   
		   (request-headers-set! request 
					 (headers `((content-length ,len)) (request-headers request)))
		   body))
	 (reader (lambda (r)
		   (display "..."))))
    ; make call
    (call-with-response request writer reader)))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which one-argument R5RS procedure returns 2 when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV