Req.ZIP (req v0.6.2)

Copy Markdown View Source

ZIP archive decoding.

Summary

Functions

Decodes a ZIP archive binary into a list of {name, contents} entries.

Functions

decode(binary)

@spec decode(binary()) ::
  {:ok, [{charlist(), binary()}]}
  | {:error,
     %Req.ArchiveError{
       __exception__: term(),
       data: term(),
       format: term(),
       reason: term()
     }}

Decodes a ZIP archive binary into a list of {name, contents} entries.

Returns {:ok, entries} or {:error, exception}.