commit | d9a5f049bce119d34c1ece031fbac1f53a199cda | [log] [tgz] |
---|---|---|
author | Piotr Pawliczek <pawliczek@google.com> | Fri Mar 31 02:40:18 2023 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Mar 31 15:56:06 2023 |
tree | 376ecc815f4404c4b89a11af4c0377110be8b6f6 | |
parent | 7c639fb5eb9ff9efd209910f7887cdb51d355057 [diff] |
libipp: Add missing unit tests for the builder Add unit tests that validate building frames with attributes of types dateTime, resolution and rangeOfIntegers. BUG=b:248022488 TEST=FEATURES=test emerge-amd64-generic libipp Change-Id: Id004331072a9cd2df16ca47314dd2627712b171b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4385730 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Tested-by: Piotr Pawliczek <pawliczek@chromium.org> NOKEYCHECK=True GitOrigin-RevId: 605b4bcd951bf008b3a66dc2300a50e34283b36d
General C++ library for building and parsing IPP frames. IPP stands for Internet Printing Protocol and is defined in several documents. This implementation is based mainly on the following sources:
All required C++ classes, types and functions are declared in ipp
namespace.
IPP frames are sent/received as a payload of HTTP POST requests/responses. This library helps to build and parse raw IPP frames, but does not support the HTTP protocol. You have to use some other library to process HTTP packages, like libbrillo or libcurl. You can also dump a raw IPP frame to a file and send it from the command line with curl, e.g.:
curl -X POST "http://my.server:631/mypath" --header "Content-Type: application/ipp" --data-binary @ipp.frame
Then obtained response can be read from the file and parsed by libipp.
In this documentation, the following typographical conventions are used:
monospace
is used to mark entities from the source code.