ring

Nim Sadeh 2025-02-10T14:04:58.091219Z

Is there a reason why there isn't an implementation of StreamableResponseBody for core.async channels? It's useful for SSE. I searched through the codebase and couldn't find a discussion in issues or PRs. If the idea is acceptable I can submit a PR.

weavejester 2025-02-10T14:17:09.529949Z

The ring-core-protocols library is designed to have zero dependencies, and adding an implementation for core.async channels would add a dependency on core.async. However, please feel free to create your own library that adds an implementation.

Nim Sadeh 2025-02-10T14:18:31.036819Z

Sure. Out of interest having never designed a popular core library like this, why is that important, given that users will typically use ring-core-protocols together with the rest of ring, which does have some dependencies?

weavejester 2025-02-10T14:19:59.344449Z

Because sometimes they don't. For example, http-kit has a goal of having no dependencies. We shouldn't force people to include dependencies that aren't necessary, particularly for mandatory elements of the Ring SPEC.

weavejester 2025-02-10T14:20:42.526629Z

Splitting ring-core-protocols from ring-core was as a result of user feedback.

Nim Sadeh 2025-02-10T14:20:55.458509Z

That's very enlightening thanks