CrossClj

0.1.1 docs

SourceDocs



RECENT

    aleph-haproxy-tcp

    Clojars

    Feb 8, 2017


    OWNER
    Casey Marshall
    Santa Cruz, CA
    casey.s.marshall@gmail.com
    caseymarshall.com/

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    aleph-haproxy-tcp

    travis Clojars Project

    A small wrapper around aleph that lets you listen as a TCP server, properly handling HAProxy protocol messages.

    It acts identically to aleph.tcp/start-server, but it will intercept the initial HAProxy message, if any is sent. :remote-addr in the connection info passed to your handler function will return the proxied remote address, not the remote address according to the socket.

    Usage

    Available on clojars, add to your dependencies:

    [com.github.csm/aleph-haproxy-tcp "0.1.1"]
    

    Then, aleph.haproxy-tcp/start-server should work as a drop-in replacement for aleph.tcp/start-server.