ruby - Request headers in Goliath middleware -
i writing own middleware goliath server.
how can request headers in "call" method?
thanks!
"call" method return [status_code, headers, body] tuple, see example below:
class awesomemiddleware include goliath::rack::asyncmiddleware def call(env) status, headers, response = super(env) [status, headers, response] end end also checkout asyncmiddleware , simplearoundwarefactory in goliath repository.
Comments
Post a Comment