(module handler mzscheme ;; type handler : bytes bytes (hash-table-of bytes bytes) -> byte-input-port ;; handler : method url headers -> result ;; make-file-handler : (U path string) -> handler (define (make-file-handler local-file) (lambda (method url headers) (open-input-file local-file))) (define (make-local-server-handler port) (lambda (method url headers body) (do-something))) )