The Streamable HTTP spec allows servers to respond with either `application/json` or `text/event-stream`. The client previously rejected the latter. Add SSE parsing via the optional `event_stream_parser` gem (users add it to their Gemfile when their server uses SSE), dispatch on the response Content-Type, and scan the event stream for the first JSON-RPC response message. Document the new optional dependency in both the README's HTTP Transport Layer section and docs/building-clients.md. No other Streamable HTTP features (202 handling, session IDs, `connect`, DELETE termination) are included here; those will land in follow-up PRs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
31 lines
785 B
Ruby
31 lines
785 B
Ruby
# frozen_string_literal: true
|
|
|
|
source "https://rubygems.org"
|
|
|
|
# Specify runtime dependencies in the gemspec
|
|
gemspec
|
|
|
|
# Specify development dependencies below
|
|
gem "rubocop-minitest", require: false
|
|
gem "rubocop-rake", require: false
|
|
gem "rubocop-shopify", ">= 2.18", require: false if RUBY_VERSION >= "3.1"
|
|
|
|
gem "puma", ">= 5.0.0"
|
|
gem "rack-cors"
|
|
gem "rackup", ">= 2.1.0"
|
|
|
|
gem "activesupport"
|
|
# Fix io-console install error when Ruby 3.0.
|
|
gem "debug" if RUBY_VERSION >= "3.1"
|
|
gem "rake", "~> 13.0"
|
|
gem "sorbet-static-and-runtime" if RUBY_VERSION >= "3.0"
|
|
gem "yard", "~> 0.9"
|
|
gem "yard-sorbet", "~> 0.9" if RUBY_VERSION >= "3.1"
|
|
|
|
group :test do
|
|
gem "event_stream_parser", ">= 1.0"
|
|
gem "faraday", ">= 2.0"
|
|
gem "minitest", "~> 5.1", require: false
|
|
gem "mocha"
|
|
gem "webmock"
|
|
end
|