From: John D. <jde...@vf...> - 2013-03-27 22:45:29
|
Hi All, I've been working with Http_client to develop a no-frills CouchDb driver. I'm relatively new to OCaml, but have many years of experience with various imperative langs. I'm looking for help with a couple of issues. My first issue is Basic Authentication. I've noticed that Basic Auth and Basic Auth Session do not include the "Authorization:" header when making GET or PUT requests UNLESS a challenge is received. Is this the expected behavior? Not a serious issue as it's easy to add my own Authorization entry to the header. Apparently CouchDb does not send an auth challenge. The second issue is chunked request performance. When peforming a query against CouchDb (say _all_docs for example) via a GET request, Ocamlnet seems to have issues processing the returned data. CouchDb returns many small blocks of data in chunked format. Processing a collection of 1000 docs can take several minutes. I'm not sure if this relates to the event system performance or socket performance. Does any one know of a solution to this issue? Thanks to all who contributed to the development of Ocamlnet. It's an impressive collection of work. Regards, John ------------------------------------------------- VFEmail.net - http://www.vfemail.net $14.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options! |