Module: Fbe::Middleware

Defined in:
lib/fbe/middleware.rb

Overview

Middleware components for Faraday HTTP client configuration.

This module serves as a namespace for various middleware components that enhance Faraday HTTP client functionality with custom behaviors such as request/response formatting, logging, and error handling.

The middleware components in this module are designed to work with the Faraday HTTP client library and can be plugged into the Faraday middleware stack to provide additional functionality.

Author

Yegor Bugayenko ([email protected])

Copyright

Copyright © 2024-2025 Zerocracy

License

MIT

Examples:

Using middleware in Faraday client

Faraday.new do |conn|
  conn.use Fbe::Middleware::Formatter
  conn.adapter Faraday.default_adapter
end

Defined Under Namespace

Classes: Formatter, RateLimit, SqliteStore, Trace