Ruby Goliath中间件中的请求头
我正在为Goliath服务器编写自己的中间件 如何在“call”方法中获取请求头 谢谢 “call”方法始终返回[status\u code,headers,body]元组,请参见下面的示例:Ruby Goliath中间件中的请求头,ruby,goliath,Ruby,Goliath,我正在为Goliath服务器编写自己的中间件 如何在“call”方法中获取请求头 谢谢 “call”方法始终返回[status\u code,headers,body]元组,请参见下面的示例: class AwesomeMiddleware include Goliath::Rack::AsyncMiddleware def call(env) status, headers, response = super(env) [status, headers, respon
class AwesomeMiddleware
include Goliath::Rack::AsyncMiddleware
def call(env)
status, headers, response = super(env)
[status, headers, response]
end
end
还可以在Goliath存储库中进行签出和保存