Module api

Source
Expand description

The api module provides the core functionality for setting up and running a secure, high-performance API server with rusty-api.

This module integrates with the Actix Web framework and includes features such as:

  • TLS Support: Secure communication using Rustls.
  • Rate Limiting: Configurable request limits to prevent abuse.
  • CORS Configuration: Flexible settings for managing cross-origin requests.
  • Custom Routes: Easily define and configure API routes/endpoints.

The Api struct serves as the main entry point for configuring and starting the server, offering methods for setting up TLS, binding to an address, configuring routes, and more.

Structsยง

Api
The Api struct is the main entry point for configuring and running the API server.