resx v0.1.0 Resx.Resource.Content.Stream

The streamable content of a resource.

%Resx.Resource.Content.Stream{
    type: ["text/html]",
    data: ["<p>", "Hello", "</p>"]
}

Link to this section Summary

Functions

Combine a content stream into a collectable

Make some content streamable

Link to this section Types

Link to this type t()
t() :: %Resx.Resource.Content.Stream{
  data: Enumerable.t(),
  type: Resx.Resource.Content.type()
}

Link to this section Functions

Link to this function combine(content, collectable \\ [])
combine(t(), Collectable.t()) :: Collectable.t()

Combine a content stream into a collectable.

If the collectable is a bitstring, this will only combine the content into a bitstring if it is possible to do so. Otherwise it will just return a list.

Link to this function new(content)
new(t() | Resx.Resource.Content.t()) :: t()

Make some content streamable.