1. 12 Jun, 2018 1 commit
    • Harris Hancock's avatar
      Add limit to readAllBytes()/readAllText() · 49b44f96
      Harris Hancock authored
      Reading an unbounded amount of data from a stream is a potential DoS vector. To manage this risk, readAllText() and readAllBytes() now accept a `limit` parameter. For source backwards-compatibility, this limit defaults to kj::maxValue.
      49b44f96
  2. 04 Jun, 2018 1 commit
  3. 11 Jan, 2018 1 commit
    • Kenton Varda's avatar
      Replace all include guards with #pragma once. · 677a52ab
      Kenton Varda authored
      @kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer.
      
      At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
      677a52ab
  4. 21 Sep, 2017 1 commit
  5. 03 Jan, 2017 1 commit
    • Ross Light's avatar
      Add getFd method to FdInputStream and FdOutputStream · 1c2fb362
      Ross Light authored
      These methods are useful if you're receiving a generic stream in
      application code and would like to check some non-stream behavior about
      the file (e.g. stat or isatty).  Of course, downcasting can fail and
      code should not rely on the file descriptor being available.
      1c2fb362
  6. 07 Nov, 2016 1 commit
  7. 04 Mar, 2016 1 commit
  8. 28 Apr, 2015 1 commit
  9. 07 Jan, 2015 1 commit
  10. 05 Jan, 2015 1 commit
  11. 09 Dec, 2014 1 commit
  12. 22 Nov, 2014 1 commit
  13. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      Kenton Varda authored
      For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company).
      
      The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is.
      
      Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change:
      
      https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
      889204fe
  14. 13 Mar, 2014 1 commit
  15. 14 Nov, 2013 1 commit
  16. 03 Aug, 2013 1 commit
  17. 12 Jun, 2013 1 commit
  18. 07 Jun, 2013 2 commits
  19. 31 May, 2013 1 commit
  20. 30 May, 2013 2 commits
  21. 29 May, 2013 2 commits
  22. 23 May, 2013 1 commit
  23. 28 Mar, 2013 1 commit