-----------------------------------------------------------------
Revision: 20aa05d6412142d6fba537601d3e3b61a6d77cd7
Ancestor: 316f4361262834acbe9ae2c41758c5b73b5bd08e
Author: [email protected]
Date: 2009-02-01T06:40:47
Branch: net.venge.monotone.nuskool

Added files:
        http.cc http.hh
Modified files:
        Makefile.am cmd_scgi.cc http_client.cc http_client.hh

ChangeLog: 

consolidate common request/response handling from http_client and cmd_scgi

* http.{cc,hh}: new files to consolidate http request/response reading and
  writing; add http::request, http::response and http::connection classes

* Makefile.am: add them

* cmd_scgi.cc: update comments about request and response bodies being JSON
  objects
  (enum type,parse_str,eat,parse_scgi_request,parse_http_request): remove
  duplicate request reading functions
  (scgi::connection): subclass http::connection for dealing with scgi requests
  (process_request): remove connection type; replace streams with an
  http::connection; return errors in http::response
  (gserve) remove connection type; disable binding to stdio for now; handle scgi
  and http requests using different connections

* http_client.{cc,hh} (resolve): new method for resolving relative uris
  (execute): use http::connection to write request and read response; fail on
  anything but 200 OK in http response
  (parse_http_status_line,parse_http_header_line,parse_http_response,crlf):
  remove duplicate response reading methods
  (transact): resolve relative uri in json request



monotone --db={your.database} diff 
--revision=316f4361262834acbe9ae2c41758c5b73b5bd08e 
--revision=20aa05d6412142d6fba537601d3e3b61a6d77cd7
----------------------------------------------------------------------


_______________________________________________
Monotone-commits-nodiffs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-commits-nodiffs

Reply via email to