monotone-commits-diffs
[Top][All Lists]
Advanced

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

[Monotone-commits-diffs] Revision 20aa05d6412142d6fba537601d3e3b61a6d77c


From: monotone
Subject: [Monotone-commits-diffs] Revision 20aa05d6412142d6fba537601d3e3b61a6d77cd7
Date: Sun, 1 Feb 2009 07:43:51 +0100

-----------------------------------------------------------------
Revision: 20aa05d6412142d6fba537601d3e3b61a6d77cd7
Ancestor: 316f4361262834acbe9ae2c41758c5b73b5bd08e
Author: address@hidden
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


Attachment: txtUqRhalrh8A.txt
Description: Diff [316f4361262834acbe9ae2c41758c5b73b5bd08e] -> [20aa05d6412142d6fba537601d3e3b61a6d77cd7]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]