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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -