Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #84612

Re: HTTP over Asynchronous AF_UNIX Socket in python

Date 2015-01-26 10:42 -0700
From Michael Torrie <torriem@gmail.com>
Subject Re: HTTP over Asynchronous AF_UNIX Socket in python
References <abcd1234abc123ab12a0000074868000020000001052@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.18154.1422294177.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 01/26/2015 06:32 AM, Norah Jones wrote:
> Now my problem is the HTTP request which to be sent must go through
> AF_UNIX socket. 

The Python Twisted framework may be of use to you.  It's got a very
steep learning curve, but it's fairly easy to change the underlying byte
transport for any protocol they have implemented. In fact in the Twisted
docs, they show a web client accessing an HTTP server over a unix socket
(scroll down to the bottom of the page):

http://twisted.readthedocs.org/en/latest/web/howto/client.html

They show a client connecting to a Docker server which is speaking HTTP
over a unix socket.

Twisted is very powerful and flexible, and event-driven.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: HTTP over Asynchronous AF_UNIX Socket in python Michael Torrie <torriem@gmail.com> - 2015-01-26 10:42 -0700

csiph-web