---
sidebar:
  label: roboto.http.request_decorators
  order: 5
title: roboto.http.request_decorators
---
## Module Contents

### BearerTokenDecorator

```python
class roboto.http.request_decorators.BearerTokenDecorator(token: str)
```

`from roboto.http import BearerTokenDecorator`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/request_decorators.py#L24-L45)

Decorates requests with a static, unchanging bearer token.

**Parameters**

- **token** (`str`)

### SigV4AuthDecorator

```python
class roboto.http.request_decorators.SigV4AuthDecorator(
    service: str = 'execute-api',
    credentials: Optional[botocore.credentials.ReadOnlyCredentials] = None,
    region: Optional[str] = None,
)
```

`from roboto.http import SigV4AuthDecorator`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/request_decorators.py#L48-L130)

**Parameters**

- **service** (`str`)
- **credentials** (`Optional[botocore.credentials.ReadOnlyCredentials]`)
- **region** (`Optional[str]`)

#### SigV4AuthDecorator.lookup_credentials()

```python
@staticmethod
def lookup_credentials() -> botocore.credentials.ReadOnlyCredentials
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/request_decorators.py#L64-L70)

**Returns**

- `botocore.credentials.ReadOnlyCredentials`

#### SigV4AuthDecorator.lookup_region()

```python
@staticmethod
def lookup_region() -> str
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/request_decorators.py#L73-L81)

**Returns**

- `str`

### logger

```python
roboto.http.request_decorators.logger
```

`from roboto.http.request_decorators import logger`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/http/request_decorators.py#L21-L21)
