can change the main responder dynamically.
This ends our very brief tour of Furnace. Furnace is much more expansive than the examples shown here, as it allows for many general web
-tasks. You can learn more about it in the { $link "furnace" } documentation.
+tasks. You can learn more about it in the { $vocab-link "furnace" } documentation.
;
ARTICLE: "tour-processes" "Processes and Channels"
! Copyright (C) 2005, 2010 Slava Pestov.
! See https://factorcode.org/license.txt for BSD license.
USING: accessors ascii assocs calendar combinators
-combinators.short-circuit destructors environment hashtables
-http http.client.post-data http.parsers io io.crlf io.encodings
-io.encodings.ascii io.encodings.binary io.encodings.iana
-io.encodings.string io.files io.pathnames io.sockets
-io.sockets.secure io.timeouts kernel math math.order math.parser
-mime.types namespaces present sequences splitting urls
-vocabs.loader ;
+combinators.short-circuit destructors effects environment
+hashtables http http.client.post-data http.parsers io io.crlf
+io.encodings io.encodings.ascii io.encodings.binary
+io.encodings.iana io.encodings.string io.files io.pathnames
+io.sockets io.sockets.secure io.timeouts kernel math math.order
+math.parser mime.types namespaces present sequences splitting
+urls vocabs.loader ;
IN: http.client
ERROR: too-many-redirects ;
HELP: map-from
{ $values
- { "seq" sequence } { "quot" quotation } { "i" integer }
+ { "seq" sequence } { "quot" quotation } { "from" integer }
{ "newseq" sequence }
}
{ $description "A version of " { $link map } " that maps the slice of " { $snippet "seq" } " beginning at index " { $snippet "i" } "." } ;
HELP: map-from-as
{ $values
- { "seq" sequence } { "quot" quotation } { "i" integer } { "exemplar" object }
+ { "seq" sequence } { "quot" quotation } { "from" integer } { "exemplar" object }
{ "newseq" sequence }
}
{ $description "A version of " { $link map-from } " where the resultant sequence has the same class as " { $snippet "exemplar" } } ;
HELP: reduce-from
{ $values
- { "seq" sequence } { "identity" object } { "quot" quotation } { "i" integer }
+ { "seq" sequence } { "identity" object } { "quot" quotation } { "from" integer }
{ "result" object }
} ;