class Prax::Middlewares::ProxyMiddleware

Defined in:

prax/middlewares/proxy_middleware.cr

Instance Method Summary

Instance methods inherited from class Prax::Middlewares::Base

call(handler, &) call

Instance Method Detail

def call(handler, &) #

[View source]
def proxy(handler, server) #

TODO stream response when Content-Length header isn't set (eg: Connection: close)

TODO stream both sides (ie. support websockets)


[View source]
def proxy_headers(request, socket, ssl) #

FIXME should dup the headers to avoid altering the request


[View source]
def stream_chunked_response(server, client) #

[View source]