module V1::Util
Extended Modules
Defined in:
v1/util/and_closer.crv1/util/once.cr
v1/util/sync.cr
v1/util/util.cr
v1/util/verify.cr
v1/util/zip.cr
Constant Summary
-
GZIP_MAGIC_HEADER =
Bytes[31, 139]
Class Method Summary
- .read_all(r : IO)
-
.verify_read_closer(r : IO, h : V1::Hash)
verify_read_closer wraps the given IO to verify that its contents match the provided V1::Hash before EOF is returned
Instance Method Summary
- #dump_request(req, body)
- #dump_response(res, body)
-
#gunzip_reader_closer(r : IO)
reads compressed input data from the IO and returns an IO from which uncompressed data may be read
- #gzip_reader_closer(r : IO, level)
- #gzip_reader_closer(r : IO)
-
#is_gzipped(r : IO)
detects whether the input stream is compressed
- #read_dir(dir : String)
- #temp_dir(prefix : String, dir : String = Dir.tempdir)
Class Method Detail
verify_read_closer wraps the given IO to verify that its contents match the provided V1::Hash before EOF is returned
Instance Method Detail
def gunzip_reader_closer(r : IO)
#
reads compressed input data from the IO and returns an IO from which uncompressed data may be read