lib/cent/http.rb
# Perform POST request to centrifugo API
# @param body [Hash] Request body(non serialized)
#
# @raise [Cent::ResponseError]
#
# @return [Hash] Parsed response body
#
Perform POST request to centrifugo API
Perform POST request to centrifugo API
def post(body: nil)
      response = connection.post(nil, body)
      raise ResponseError, response.body['error'].transform_keys(&:to_sym) if response.body.key?('error')
      response.body
    end
def post ( body : nil ) response = connection . post ( nil , body ) raise ResponseError , response . body [ 'error' ] . transform_keys ( & :to_sym ) if response . body . key? ( 'error' ) response . body end
Perform POST request to centrifugo API
Perform POST request to centrifugo API
Parsed response body
Parsed response body
Hash
None
body
Request body(non serialized)
Request body ( non serialized )