Inputs and outputs seq a byte-array, a string, or f Fails with a byte-array as well.
2010/7/28 Philipp Brüschweiler <[email protected]>: > On Wed, 28 Jul 2010 22:23:21 +0200 > Jon Harper <[email protected]> wrote: >> Hi, >> Like they said in the comments, you need to set the "message" slot of >> the response. >> >> USING: http http.server threads furnace.actions ; >> [ 8888 httpd ] in-thread >> <action> [ >> <response> >> 200 >>code >> "text/plain" >>content-type >> "Hello World" >>body >> "Success" >>message >> ] >>display main-responder set-global >> >> However, if you look at all the webapps shipped with factor (search >> for webapps in the help browser), all of them are using Chloe >> templates. I think you should take a look at these and see if Chloe >> templates are enough for your needs. Chloe templates are supposed to >> be easier to use than http responses. >> >> Cheers, >> Jon > > Arguably that's a bug in M: encoder stream-write though. The code fails > in write-response-line when it tries to write f. The documentation of > write on the other hand explicitly allows f as input. > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
