Class: VectorMCP::Transport::HttpStream::StreamHandler::StreamingConnection Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/vector_mcp/transport/http_stream/stream_handler.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Streaming connection data structure

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#closedObject

Returns the value of attribute closed

Returns:

  • the current value of closed



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def closed
  @closed
end

#originObject

Returns the value of attribute origin

Returns:

  • the current value of origin



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def origin
  @origin
end

#sessionObject

Returns the value of attribute session

Returns:

  • the current value of session



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def session
  @session
end

#stream_idObject

Returns the value of attribute stream_id

Returns:

  • the current value of stream_id



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def stream_id
  @stream_id
end

#threadObject

Returns the value of attribute thread

Returns:

  • the current value of thread



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def thread
  @thread
end

#yielderObject

Returns the value of attribute yielder

Returns:

  • the current value of yielder



21
22
23
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 21

def yielder
  @yielder
end

Instance Method Details

#closeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



22
23
24
25
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 22

def close
  self.closed = true
  thread&.kill
end

#closed?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



27
28
29
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 27

def closed?
  closed
end

#from_get?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true if this connection originated from a GET request.

Returns:

API:

  • private



32
33
34
# File 'lib/vector_mcp/transport/http_stream/stream_handler.rb', line 32

def from_get?
  origin == :get
end