class Pytty::Client::Api::Stdout

Public Class Methods

run(id:) click to toggle source
# File lib/pytty/client/api/stdout.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/stdout/#{id}", headers, [body])
  [response, response.body]
ensure
  internet.close
end