category
http_oauth_helpers
Internal shared helpers for OAuth Bearer syntax and normalized HTTP overlays.
Availability:
logtalk_load(http_oauth(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-01
Compilation flags:
staticRemarks:
(none)
Inherited public predicates:
(none)
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
valid_bearer_token/1
Succeeds when the atom is a nonempty RFC 6750 b64token value.
Compilation flags:
staticTemplate:
valid_bearer_token(Token)Mode and number of proofs:
valid_bearer_token(+atom) - zero_or_oneparse_scope_value/2
Parses and validates a space-delimited OAuth scope value.
Compilation flags:
staticTemplate:
parse_scope_value(Value,Scopes)Mode and number of proofs:
parse_scope_value(+atom,-list(atom)) - zero_or_onegenerate_scope_value/2
Validates and generates a space-delimited OAuth scope value.
Compilation flags:
staticTemplate:
generate_scope_value(Scopes,Value)Mode and number of proofs:
generate_scope_value(+list(atom),-atom) - zero_or_onequoted_authentication_parameter/3
Generates a quoted HTTP authentication parameter, escaping quotes and backslashes.
Compilation flags:
staticTemplate:
quoted_authentication_parameter(Name,Value,Parameter)Mode and number of proofs:
quoted_authentication_parameter(+atom,+atom,-atom) - oneoverlay_http_headers/3
Overlays normalized HTTP headers by header name.
Compilation flags:
staticTemplate:
overlay_http_headers(Overrides,Headers,OverlayHeaders)Mode and number of proofs:
overlay_http_headers(+list(pair),+list(pair),-list(pair)) - oneoverlay_http_properties/3
Overlays normalized HTTP properties by functor and arity.
Compilation flags:
staticTemplate:
overlay_http_properties(Overrides,Properties,OverlayProperties)Mode and number of proofs:
overlay_http_properties(+list(compound),+list(compound),-list(compound)) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)