Module roadrunner_security_headers

Behaviours: roadrunner_middleware.

Data Types

config()

config() = #{content_type_options => binary() | false, frame_options => binary() | false, referrer_policy => binary() | false, hsts => boolean() | hsts_config(), content_security_policy => binary() | false}

hsts_config()

hsts_config() = #{max_age => non_neg_integer(), include_subdomains => boolean(), preload => boolean()}

state()

state() = #sec{static = roadrunner_http:headers(), hsts = binary() | false}

Function Index

call/3
init/1

Function Details

call/3

call(Req::roadrunner_req:request(), Next::roadrunner_middleware:next(), Sec::state()) -> roadrunner_handler:result()

init/1

init(Config::config()) -> state()


Generated by EDoc