---
name: "OAuth::Lite2::Agent"
section: "3pm"
platform: "linux"
package: "liboauth-lite2-perl"
version: "0.11-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/OAuth::Lite2::Agent"
---

# OAuth::Lite2::Agent(3pm)

Base class of preset-agents.

## NAME

OAuth::Lite2::Agent - Base class of preset-agents.

## SYNOPSIS

```
    my $agent = OAuth::Lite2::Client::Agent->new;
    my $res = $agent->request( $req );
```

## DESCRIPTION

Base class of preset-agents.

## METHODS

### new (%args)

Constructor you can set 'agent' that has same 'request' interface method as LWP::UserAgent. If you omit that, a simple LWP::UserAgent object is set by default.

```
    my $agent = $class->new( agent => YourCustomAgent->new );
```

### request ($req)

Returns HTTP::Response object.

## SEE ALSO

OAuth::Lite2::Client::Agent::Dump, OAuth::Lite2::Client::Agent::Strict

## AUTHOR

Lyo Kato, `"lyo.kato _at_ gmail.com"`

## COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
