[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cohttp_lwt_mirage.ml / client



That was matrix-ssl - we decided subsequently that axTLS might be a better bet for licensing reasons. MatrixSSL stuff is on github, I hadn't made a start on axTLS yet.

Jon

On 18/11/13 16:02, Anil Madhavapeddy wrote:
I have the exact same problem for the GitHub client API too.  As a short-term fix, we could bind an embedded SSL library, and as a medium-term action, wait for ctypes stub generation to make this easier.

Jon: do you have the sources to the SSL library you did bindings too at that Yahoo event we were at?  I'm back in Cambridge and resuming work on mirage-platform on Wednesday, so I can look at SSL in the Xen backend at the same time.

-anil

On 18 Nov 2013, at 01:21, Christopher Greenhalgh <Chris.Greenhalgh@xxxxxxxxxxxxxxxx> wrote:

Thanks, Dave.
Unfortunately it turns out it is a HTTPS-only API (and I should also be using https for my server for a “real” deployment) so
can someone comment on the status/timeline of https support, client and server?
 
Cheers
Chris
 
 
From: cl-mirage-bounces@xxxxxxxxxxxxxxx [mailto:cl-mirage-bounces@xxxxxxxxxxxxxxx] On Behalf Of David Scott
Sent: 12 November 2013 14:31
To: Christopher Greenhalgh
Cc: cl-mirage@xxxxxxxxxxxxxxx; anil@xxxxxxxxxx
Subject: Re: cohttp_lwt_mirage.ml / client
 
My common pattern is like this:
 
 
-- instantiate Request and Response (I'm using a non-standard I/O module here, but you can use the cohttp mirage module IIRC) and then 
 
      let request = Cohttp.Request.make ~meth:`PUT ~version:`HTTP_1_1 ~headers uri' in
      Request.write (fun t _ -> return ()) request c >>= fun () ->
      Response.read (Cohttp_unbuffered_io.make_input c) >>= fun r ->
      begin match r with
      | None -> fail (Failure "Unable to parse HTTP response from server")
      | Some x ->
 
In the future I'd like a client which can handle a set of open connections (perhaps growing and shrinking the set according to load and policy) and which helps me build higher-level APIs on top which can do things like transparently login after a session times out.
 

 

On Tue, Nov 12, 2013 at 2:11 PM, Christopher Greenhalgh <Chris.Greenhalgh@xxxxxxxxxxxxxxxx> wrote:

is there any news on the return of the cohttp client?
I need to start making some HTTP requests from my mirage-based web service...
What is the best ultra-short-term workaround? (i am mostly developing on unix/sockets)
cheers
chris
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






 
-- 
Dave Scott

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.