Fluffy.FilePayload (Fluffy v0.2.0)

Copy Markdown View Source

An in-memory file selected with Fluffy.set_input_files/4.

bytes contains the raw file bytes. content_type may be omitted; Fluffy then infers it from name, falling back to application/octet-stream in the same way as Playwright.

Use this value for generated fixtures and for tests that run against a remote Playwright browser without sharing a filesystem.

Summary

Types

t()

@type t() :: %Fluffy.FilePayload{
  bytes: binary(),
  content_type: String.t() | nil,
  name: String.t()
}