tag:blogger.com,1999:blog-27488238.post115370049354046721..comments2024-03-22T11:34:45.165+01:00Comments on taw's blog: RLisp gets HTTP supporttawhttp://www.blogger.com/profile/16972845140253292628noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-27488238.post-1154394358807928492006-08-01T03:05:00.000+02:002006-08-01T03:05:00.000+02:00It looks remarkably similar:require 'webrick'# Con...It looks remarkably similar:<BR/><BR/>require 'webrick'<BR/><BR/># Configure the server<BR/>config = {:Port => 1337}<BR/><BR/># Tell the class to make us a server object<BR/>server = WEBrick::HTTPServer.new(config)<BR/><BR/># Tell server to call our Hello World handler<BR/>server.mount_proc("/hello") {|req,res|<BR/>res.body = "<html><body><h3>Hello, world!</h3></body></html>"<BR/> res["Content-Type"] = "text/html"<BR/>}<BR/><BR/># Tell the server to go !<BR/>server.starttawhttps://www.blogger.com/profile/16972845140253292628noreply@blogger.comtag:blogger.com,1999:blog-27488238.post-1154392462756611962006-08-01T02:34:00.000+02:002006-08-01T02:34:00.000+02:00Can you post here how does look http_server_hello....Can you post here how does look http_server_hello.rl implemented in plain Ruby?Ćukasz Biegajhttps://www.blogger.com/profile/17643614603078462705noreply@blogger.com