Class: Ksql::Api::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/ksql/api/info.rb

Constant Summary collapse

Headers =
{ 'Accept' => 'application/json' }.freeze

Class Method Summary collapse

Class Method Details

.build(headers:) ⇒ Ksql::Connection::Request

Build the ksqlDB /info request

Parameters:

  • headers (Hash)

    Request headers

Returns:



15
16
17
18
19
20
21
22
# File 'lib/ksql/api/info.rb', line 15

def self.build(headers:)
  ::Ksql::Connection::Request.new(
    {},
    '/info',
    Headers.merge(headers),
    :get
  )
end