Gemini.Meta behaviour (Gemini v0.2.0)

Behaviour module for complex meta types. Modules of this type can be used in place of string MIME types in Gemini.Response.

Link to this section Summary

Callbacks

Encode first argument according to the meta type.

Return mime type of this meta type.

Link to this section Callbacks

Link to this callback

encode(data, args)

Specs

encode(data :: any(), args :: any()) :: binary()

Encode first argument according to the meta type.

Specs

type(args :: any()) :: binary()

Return mime type of this meta type.