Class: Pytty::Client::Api::Stderr
- Inherits:
-
Object
- Object
- Pytty::Client::Api::Stderr
- Defined in:
- lib/pytty/client/api/stderr.rb
Class Method Summary collapse
Class Method Details
.run(id:) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pytty/client/api/stderr.rb', line 5 def self.run(id:) internet = Async::HTTP::Internet.new headers = [['accept', 'application/json']] body = { }.to_json response = internet.post("#{Pytty::Client.host_url}/v1/stderr/#{id}", headers, [body]) [response, response.body] ensure internet.close end |