2013-08-16 5 views

답변

1

"호출"에있어서 항상 복귀 [STATUS_CODE, 헤더, 바디] 튜플 예 아래 참조 :

class AwesomeMiddleware 
    include Goliath::Rack::AsyncMiddleware 

    def call(env) 
    status, headers, response = super(env) 
    [status, headers, response] 
    end 

end 

는 또한 골리앗 저장소 AsyncMiddlewareSimpleAroundwareFactory와 체크 아웃.