Move NULL-PATH-HANDLER from HTTPD-FILE-DIRECTORY-HANDLERS-INTERFACE to
HTTPD-BASIC-HANDLERS.
This commit is contained in:
parent
c97bbfc1db
commit
3b6b813965
|
@ -79,12 +79,6 @@
|
||||||
req)))
|
req)))
|
||||||
|
|
||||||
|
|
||||||
;;; The null path handler -- handles nothing, sends back an error response.
|
|
||||||
;;; Can be useful as the default in table-driven path handlers.
|
|
||||||
|
|
||||||
(define (null-path-handler path req)
|
|
||||||
(make-http-error-response http-status/not-found req))
|
|
||||||
|
|
||||||
;;;; Support procs for the path handlers
|
;;;; Support procs for the path handlers
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|
|
@ -86,3 +86,9 @@
|
||||||
default-handler))
|
default-handler))
|
||||||
default-handler
|
default-handler
|
||||||
handler-alist))
|
handler-alist))
|
||||||
|
|
||||||
|
;;; The null path handler -- handles nothing, sends back an error response.
|
||||||
|
;;; Can be useful as the default in table-driven path handlers.
|
||||||
|
|
||||||
|
(define (null-path-handler path req)
|
||||||
|
(make-http-error-response http-status/not-found req))
|
||||||
|
|
|
@ -370,14 +370,14 @@
|
||||||
make-path-handler
|
make-path-handler
|
||||||
make-host-name-handler
|
make-host-name-handler
|
||||||
make-path-prefix-handler
|
make-path-prefix-handler
|
||||||
alist-path-dispatcher))
|
alist-path-dispatcher
|
||||||
|
null-path-handler))
|
||||||
|
|
||||||
(define-interface httpd-file-directory-handlers-interface
|
(define-interface httpd-file-directory-handlers-interface
|
||||||
(export home-dir-handler
|
(export home-dir-handler
|
||||||
tilde-home-dir-handler
|
tilde-home-dir-handler
|
||||||
rooted-file-handler
|
rooted-file-handler
|
||||||
rooted-file-or-directory-handler
|
rooted-file-or-directory-handler))
|
||||||
null-path-handler))
|
|
||||||
|
|
||||||
(define-interface seval-handler-interface
|
(define-interface seval-handler-interface
|
||||||
(export seval-handler))
|
(export seval-handler))
|
||||||
|
@ -768,6 +768,7 @@
|
||||||
httpd-request ; REQUEST record type, v0.9-request
|
httpd-request ; REQUEST record type, v0.9-request
|
||||||
srfi-1 ; FOLD-RIGHT
|
srfi-1 ; FOLD-RIGHT
|
||||||
srfi-13 ; STRING-TRIM
|
srfi-13 ; STRING-TRIM
|
||||||
|
httpd-responses
|
||||||
)
|
)
|
||||||
(files (httpd handlers)))
|
(files (httpd handlers)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue