Giter Club home page Giter Club logo

Comments (6)

ncarlier avatar ncarlier commented on July 17, 2024 1

Thinking about your problem, I think we can solve this with a cooler way than a feature flipping flag.
Maye we should use the Accept HTTP header. Only activate SSE if the Accept request header is text/event-stream.
I have to test, curl, and several Browsers to verify that this header is properly set when expecting a SSE response.

from webhookd.

ncarlier avatar ncarlier commented on July 17, 2024 1

As a result, using the Accept header is a perfect choice for streaming protocol.
Thank you very much for this issue.

from webhookd.

ncarlier avatar ncarlier commented on July 17, 2024

Hi, thank you for the interest shown in this project!

I understand your need. Your concern is not really about the prefix but about the Server Sent Event (SSE) usage.
The prefix is part of the Event Stream format.
What the project needs is the possibility to activate/deactivate the SSE support.

Regards

from webhookd.

movd avatar movd commented on July 17, 2024

Thanks for the feedback. I learned something new. Until now, I didn't know about the Event Stream format. I will close my PR and work on a toggle to deactivate SSE if needed.

from webhookd.

movd avatar movd commented on July 17, 2024

Thanks for the neat solution! I already tested it using the edge container image. Do you plan on creating a new release for this addition?

from webhookd.

ncarlier avatar ncarlier commented on July 17, 2024

Yes but maybe with another addition...

from webhookd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.