function GymClient:post_request()

in binding-lua/gym_http_client.lua [40:47]


function GymClient:post_request(route, req_data)
   url = self.remote_base .. route
   options = {}
   options.content_type = 'application/json'
   json_str = json.encode(req_data)
   resp = self.http:post(url, json_str, options)
   return self:parse_server_error_or_raise_for_status(resp)
end