Skip to content

Suggestion to Add "iter_lines" Support for "FastHttpUser" in Locust #3018

@MasterKey-Pro

Description

@MasterKey-Pro

Prerequisites

Description

In testing AI services using HTTP Server-Sent Events (SSE), HttpUser allows handling of streaming data efficiently. However, using FastHttpUser for performance benefits isn't feasible due to its lack of streaming support.

Proposed Enhancement:

Implement iter_lines support in FastHttpUser to process streaming responses efficiently.
Maintain the performance benefits that FastHttpUser offers.
Benefits:

Expands FastHttpUser to handle real-time data and streaming APIs.
Simplifies testing by allowing users to utilize performance benefits without additional handling logic.
Provides consistent capabilities across user classes in Locust.
I believe this enhancement will increase Locust's versatility.

Thank you for considering this suggestion

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions