Ticket #1210: intarweb-changes.diff
File intarweb-changes.diff, 1.6 KB (added by , 9 years ago) |
---|
-
intarweb.scm
42 42 header-parsers header-unparsers unparse-header unparse-headers read-headers 43 43 safe-methods safe? idempotent-methods idempotent? keep-alive? response-class 44 44 etag=? etag=-weakly? etag-matches? etag-matches-weakly? 45 45 46 46 make-request request? request-major request-major-set! 47 47 request-minor request-minor-set! 48 48 request-method request-method-set! request-uri request-uri-set! 49 49 request-headers request-headers-set! request-port request-port-set! 50 update-request set-request! request-has-message-body?50 request-conn-factory update-request set-request! request-has-message-body? 51 51 52 52 request-parsers read-request request-unparsers write-request 53 53 finish-request-body http-0.9-request-parser http-1.x-request-parser … … 555 555 (make-property-condition 'exn 'message msg 'arguments args)))) 556 556 557 557 (defstruct request 558 (method 'GET) uri (major 1) (minor 1) (headers (make-headers '())) port)558 (method 'GET) uri (major 1) (minor 1) (headers (make-headers '())) port (conn-factory #f)) 559 559 560 560 ;; Perhaps we should have header parsers indexed by version or 561 561 ;; something like that, so you can define the maximum version. Useful … … 787 787 ;; List of HTTP status codes based on: 788 788 ;; http://www.iana.org/assignments/http-status-codes/http-status-codes.xml 789 789 (define http-status-codes 790 (make-parameter 790 (make-parameter 791 791 `((continue . (100 . "Continue")) 792 792 (switching-protocols . (101 . "Switching Protocols")) 793 793 (processing . (102 . "Processing"))