agoo:用于Ruby的高性能HTTP服务器 源码
阿古 Ruby的高性能HTTP服务器 用法 架 require 'agoo' Agoo :: Server . init ( 6464 , 'root' ) class MyHandler def call ( req ) [ 200 , { } , [ "hello world" ] ] end end handler = MyHandler . new Agoo :: Server . handle ( :GET , "/hello" , handler ) Agoo :: Server . start ( ) # To run this example type the
用户评论