Module: Semaphore::HTTP
- Included in:
- Client
- Defined in:
- lib/semaphore/http.rb
Instance Method Summary collapse
Instance Method Details
#get_request(path:, parameters: {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/semaphore/http.rb', line 9 def get_request(path:, parameters: {}) conn.get(uri(path:)) do |req| configure_request_params(req, parameters) end&.body end |
#post_request(path:, parameters: {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/semaphore/http.rb', line 3 def post_request(path:, parameters: {}) conn.post(uri(path:)) do |req| configure_request_params(req, parameters) end&.body end |