Welcome to the CHICKEN Scheme pasting service

read-from-request added by mario-goulart on Wed Apr 15 19:29:22 2015

(define (read-from-request reader)
  (let* ((req (current-request))
         (headers (request-headers (current-request)))
         (content-length (header-value 'content-length headers)))
    (cond ((and content-length (zero? content-length))
           "")
          ((not content-length)
           (error 'echo-service "Set content-length, sloppy client"))
          (else (call-with-input-string
                 (read-string content-length (request-port req))
                 reader)))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the one-argument procedure to check if a list is empty?
Visually impaired? Let me spell it for you (wav file) download WAV