hyperlane-plugin-gateway 23.3.2

A reverse proxy and API gateway plugin for the Hyperlane framework with load balancing, path-prefix routing, token-bucket rate limiting, circuit breaking, RFC 9110 hop-by-hop header stripping, and pooled HTTP/1.1 + HTTP/2 upstream forwarding.
Documentation
<div align="center">

<img src="https://devhub.vip/pages/docs/img/hyperlane.png" alt="hyperlane-plugin-gateway logo" height="120">

# hyperlane-plugin-gateway

**Reverse Proxy & API Gateway Plugin with Load Balancing & Upstream Resilience**

[![Crates.io Version](https://flat.badgen.net/crates/v/hyperlane-plugin-gateway)](https://crates.io/crates/hyperlane-plugin-gateway)
[![Docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-gateway?style=flat-square)](https://docs.rs/hyperlane-plugin-gateway)
[![CI Status](https://img.shields.io/github/actions/workflow/status/hyperlane-dev/hyperlane/rust.yml?branch=master&style=flat-square&label=CI)](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../LICENSE)

[Workspace Overview](../../README.md) · [Plugin Catalog](../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-gateway/latest/)

</div>

---

## Overview

`hyperlane-plugin-gateway` turns a [`hyperlane`](../../README.md) server into a high-throughput reverse proxy and API gateway over pooled [`http-request`](../../request/README.md) HTTP/1.1 and HTTP/2 connections (hook order `-50`). It is opt-in and transparent (`Status::Continue`) when unconfigured.

## Installation

```sh
cargo add hyperlane-plugin-gateway
```

## Usage

```rust
use hyperlane_plugin_gateway::{GatewayConfig, GatewayPlugin};

fn setup_gateway() {
    GatewayPlugin::init(GatewayConfig::default());
}
```

## Verification

```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-gateway --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-gateway --all-features
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).