Skip to content

Request_Types

This page contains the API documentation for the gradual.constants.request_types module.

gradual.constants.request_types

The request_types module provides the RequestType enum which defines the supported types of API requests in the stress testing framework. It includes HTTP and WebSocket protocols with their respective URL schemes.

Classes

RequestType

Bases: Enum

Enumeration of supported API request types and their URL schemes.

This enum defines the different types of API requests that can be made in the stress testing framework, along with their corresponding URL protocol schemes.

Attributes:

Name Type Description
websocket list[str]

List of WebSocket URL schemes (wss, ws)

http list[str]

List of HTTP URL schemes (http, https)

Attributes
websocket = ['wss', 'ws'] class-attribute instance-attribute
http = ['http', 'https'] class-attribute instance-attribute