category

http_authentication_helpers

Internal shared helpers for HTTP authentication scheme and parameter syntax.

Availability:
logtalk_load(http_core(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-01
Compilation flags:
static
Extends:
Uses:
Remarks:
(none)
Inherited public predicates:
(none)

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

authentication_scheme_codes/3

Splits authentication value codes into the scheme and remaining payload codes at the first HTTP optional whitespace code.

Compilation flags:
static
Template:
authentication_scheme_codes(Codes,SchemeCodes,PayloadCodes)
Mode and number of proofs:
authentication_scheme_codes(+list(integer),-list(integer),-list(integer)) - one

parse_authentication_parameters/3

Parses comma-separated authentication parameters, using the given domain-error term for invalid syntax and duplicate names.

Compilation flags:
static
Template:
parse_authentication_parameters(ErrorDomain,Codes,Pairs)
Mode and number of proofs:
parse_authentication_parameters(+nonvar,+list(integer),-list(pair)) - one_or_error

authentication_token_codes/1

Succeeds when the nonempty list of codes is an HTTP token.

Compilation flags:
static
Template:
authentication_token_codes(Codes)
Mode and number of proofs:
authentication_token_codes(+list(integer)) - zero_or_one

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)