http.server.cgi: fix for the dependency cycle http.server.cgi <=>

http.server.static (#1311)
db4
Björn Lindqvist 2015-10-02 14:19:47 +02:00
parent 6b940cb972
commit 51c5484e24
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,9 @@
USING: help.markup help.syntax http.server.static ;
USING: help.markup help.syntax ;
IN: http.server.cgi
DEFER: file-responder
DEFER: <static>
HELP: enable-cgi
{ $values { "responder" file-responder } }
{ $description "Enables the responder to serve " { $snippet ".cgi" } " scripts by executing them as per the CGI specification." }
@ -15,3 +18,5 @@ HELP: enable-cgi
ARTICLE: "http.server.cgi" "Serving CGI scripts"
"The " { $vocab-link "http.server.cgi" } " implements CGI support. It is used in conjunction with a " { $link <static> } " responder."
{ $subsections enable-cgi } ;
ABOUT: "http.server.cgi"

View File

@ -1,9 +1,8 @@
! Copyright (C) 2007, 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: namespaces kernel assocs io.files io.streams.duplex
combinators arrays io.launcher io.encodings io.encodings.binary io
http.server.static http.server http accessors sequences strings
math.parser fry urls urls.encoding calendar make ;
USING: accessors arrays assocs calendar fry http http.server io
io.encodings io.encodings.binary io.launcher io.streams.duplex kernel
make math.parser namespaces sequences urls urls.encoding ;
IN: http.server.cgi
: cgi-variables ( script-path -- assoc )