History log of /system/webservd/libwebserv/response.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3320726e9ccf678a9accdd6994e28f0cb8454eab 16-Dec-2015 Christopher Wiley <wiley@google.com> Hide ProtocolHandler implementation

Move ProtocolHandler implementation and fields into DBusProtocolHandler
and extract a ProtocolHandler interface.

Bug: 25932908
Test: `mmma -j16 system/webservd`

Change-Id: I9100387f331e899da9bf44202ce2becf5fad4895
/system/webservd/libwebserv/response.cc
692fdfda682376f73aaf085ed6cc58ecfa0f32a5 24-Nov-2015 Christopher Book <cbook@google.com> webservd: add fake request, mock response for testing request handlers

Change-Id: I26ab8bf01038b4ae9f022bc1001bd7455cb1f986
/system/webservd/libwebserv/response.cc
75d6da24dedcbc090d23de60c4f1637c3a54b392 13-Oct-2015 Alex Vakulenko <avakulenko@google.com> webservd: Rename "chromeos" -> "brillo" in include paths and namespaces

libchromeos is transitioning to libbrillo and chromeos namespaces
and include directory is changing to brillo.

Bug: 24872993
Change-Id: Iba15692972a0c24ec87ac8e51d4eb032214149b0
/system/webservd/libwebserv/response.cc
330a10fd406a37af8f9c530d9b51dc5e25fcdceb 24-Sep-2015 Alex Vakulenko <avakulenko@google.com> Implement streaming I/O for response data

Sending response to an HTTP request is now using streaming I/O.
ProtocolHandler::CompleteRequest() now returns a file descriptor
for the write-end of a pipe and clients (request handlers) can
write to this file descriptor data at a rate it becomes available.
When expected amount of data is sent (or the pipe is closed on
the handler's end) the response is finalized.

Both normal (when data size is known) and chunked responses are
supported.

BUG: 24166746
Change-Id: Ie98cfa4262ba82941aaefd4c9bfd9986c784219c
/system/webservd/libwebserv/response.cc
35f6587840b71c8bd3e3655508b6f05cb2593ba9 18-Aug-2015 Daniel Erat <derat@google.com> Build for Android.

Add Android.mk files to build webservd and libwebserv, patch
the source to not use libminijail when __BRILLO__ is
defined, and update copyright information.

Also add pre-generated D-Bus bindings into a gen/ directory
to use until code generation is working.

Bug: 22828211
Change-Id: Ib6d06789c1a5a27b8ee4f85d5723b46973c1ddaa
/system/webservd/libwebserv/response.cc
e88b8067863605485b966c074ba3bc5384da1763 15-Jun-2015 Alex Vakulenko <avakulenko@chromium.org> platform2: Fix issues with new version of libchrome

libchrome r334380 has the following breaking changes that need to be fixed:
- base::JSONWriter::Write() and base::JSONWriter::WriteWithOptions() take
"const base::Value&" instead of "const base::Value*"
- base::JSONReader::Read() and base::JSONReader::ReadAndReturnError()
return a scoped_ptr<base::Value> instead of base::Value*
- base/safe_strerror_posix.h is moved to base/posix/safe_strerror.h
- safe_strerror() is now in "base" namespace
- StartsWithASCII(), EndsWith(), StringToUpperASCII(), LowerCaseEqualsASCII()
are now in "base" namespace
- ObserverList<T> is now in "base" namespace
- base::PrintTo(base::FilePath) used in gtest is now moved to libchrome-test
library and as such, unit test runners need to link to this library now.
- crypto::RSAPrivateKey::CreateSensitive() is now removed from //crypto, so
some of tests in chromeos-login that used that function had to be changed
to use crypto::GenerateRSAKeyPairNSS() directly.
- UnixDomanSocket class is now in "base" namespace
- Pickle class is now in "base" namespace

BUG=chromium:496469
TEST=`./build_packages`
CQ-DEPEND=CL:277662

Change-Id: I36e5fbf2e36a92068873ffbd44020c862a3ed9e3
Reviewed-on: https://chromium-review.googlesource.com/277671
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Trybot-Ready: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
/system/webservd/libwebserv/response.cc
31a6379d5f773cb40312d2085e07f30cf3ac685d 03-Feb-2015 Alex Vakulenko <avakulenko@chromium.org> webserver: Move web server functionality into webservd

Moved libmicrohttpd from libwebserv to webservd daemon. Added the
D-Bus interface between the web server daemon and client library.

Updated privetd to use the new interface.

BUG=brillo:10
TEST=`FEATURES=test emerge-link libwebserv privetd`
CQ-DEPEND=CL:245780,CL:245118,CL:*195757

Change-Id: I26bfab64c6a0fd9460a47fd3fa9205c89abb943a
Reviewed-on: https://chromium-review.googlesource.com/245980
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/webservd/libwebserv/response.cc
039da31d4ac1a92ab9aad2273083028ede430549 03-Feb-2015 Alex Vakulenko <avakulenko@chromium.org> webserver: Moved platform2/libwebserv to platform2/webserver

Cleaned up the code structure a bit inside the web server directory
to reflect the current layout of functionality:

- Renamed the top-level director from libwebserv to webserver
- Moved the client library code to sub-directory of libwebserv to
be on the same level as the web server daemon (webservd).
- Updated the source code to reflect the new include paths.

BUG=brillo:10
TEST=FEATURES=test emerge-storm webserver privetd ap-daemons
CQ-DEPEND=CL:245755,CL:*195317

Change-Id: Idb8d665b6e0c15b5ee0219ff72327045a7084363
Reviewed-on: https://chromium-review.googlesource.com/245736
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
/system/webservd/libwebserv/response.cc