NAME

At::UserAgent - Abstract Base Class for AT Protocol User Agents

DESCRIPTION

At::UserAgent defines the interface for HTTP clients used by At. It handles DPoP proof generation, automatic nonce management, and authentication headers.

Subclasses

At::UserAgent::Mojo

Uses Mojo::UserAgent. Recommended for asynchronous or high-performance applications.

At::UserAgent::Tiny

Uses HTTP::Tiny. A lightweight, zero-dependency alternative. Does not support firehose/WebSockets.

Attributes

accessJwt()

The current access token.

token_type()

The token type (e.g., 'DPoP' or 'Bearer').

dpop_key()

The Crypt::PK::ECC key used for DPoP signing.

Methods

set_tokens( $access, $refresh, $type, $key )

Sets the current authentication tokens and keys.

get( $url, [ \%options ] )

Performs an HTTP GET request.

post( $url, [ \%options ] )

Performs an HTTP POST request.

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>