Module gun_content_handler

This module defines the gun_content_handler behaviour.
Required callback functions: init/5, handle/3.

Data Types

opt()

opt() = [module() | {module(), #{}}]

state()

state() = opt() | [{module(), any()}]

Function Index

check_option/1
handle/3
init/5

Function Details

check_option/1

check_option(Opt::list()) -> ok | error

handle/3

handle(IsFin::fin | nofin, Data0::any(), State) -> State

init/5

init(ReplyTo::pid(), StreamRef::any(), Status::cow_http:status(), Headers::cow_http:headers(), State) -> State


Generated by EDoc, Jan 16 2018, 19:57:52.