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


Groups > comp.lang.python > #84612 > unrolled thread

Re: HTTP over Asynchronous AF_UNIX Socket in python

Started byMichael Torrie <torriem@gmail.com>
First post2015-01-26 10:42 -0700
Last post2015-01-26 10:42 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#84612 — Re: HTTP over Asynchronous AF_UNIX Socket in python

FromMichael Torrie <torriem@gmail.com>
Date2015-01-26 10:42 -0700
SubjectRe: HTTP over Asynchronous AF_UNIX Socket in python
Message-ID<mailman.18154.1422294177.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web