Skip to content

Unable to Wrap SSE Handler with Middleware Using WithHTTPServer #227

Open
@dwisiswant0

Description

@dwisiswant0

i’m wondering if there’s a proper way to wrap an SSE server handler with middleware. i’ve already tried using WithHTTPServer to inject middleware logic, but it doesn’t seem to have any visible effect on the SSE handler, it looks like the middleware might be getting bypassed or not applied at all in this context.

if there’s a recommended approach or example of how to attach middleware to SSE endpoints specifically, that would be super helpful. just trying to figure out the best way to apply things like caching, auth checks, or other pre-processing layers before the SSE stream begins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions