Welcome to the CHICKEN Scheme pasting service

awful & JSON added by mario-goulart on Sun May 5 16:39:43 2019

$ cat awful-json.scm
(import awful intarweb spiffy chicken.io)

(define-page (main-page-path)
  (lambda ()
    (let* ((req (current-request))
           (headers (request-headers req))
           (content-length (header-value 'content-length headers)))
      (print (read-string content-length (request-port (current-request))))
      '()))
  no-template: #t
  method: 'post)

$ awful awful-json.scm &
[1] 1652

$ curl --header "Content-Type: application/json" --request POST --data '{"foo":"xyz"}' http://localhost:8080/
{"foo":"xyz"}

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which egg provides `string-pad-right'?
Visually impaired? Let me spell it for you (wav file) download WAV