Method: Chatrix::Matrix#make_request
- Defined in:
- lib/chatrix/matrix.rb
#make_request(method, path, opts = {}) {|fragment| ... } ⇒ HTTParty::Response
Helper method for performing requests to the homeserver.
201 202 203 204 205 206 |
# File 'lib/chatrix/matrix.rb', line 201 def make_request(method, path, opts = {}, &block) path = (opts[:base] || @base_uri) + URI.encode(path) = opts[:params], opts[:content], opts[:headers] parse_response METHODS[method].call(path, , &block) end |