Module cowmachine_accept_language

Accept-Language handling.

Copyright © 2017-2019 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Accept-Language handling.

Function Index

accept_header/2
accept_list/2

Function Details

accept_header/2

accept_header(AvailableLangs::[{binary(), [binary()]}], AcceptHeader::cowmachine_req:context() | binary() | undefined) -> {ok, binary()} | {error, nomatch | header}

accept_list/2

accept_list(AvailableLangs::[{binary(), [binary()]}], AcceptableLangs::[binary()]) -> {ok, binary()} | {error, nomatch}


Generated by EDoc