Sha256: 7b59a97aa13617bd697dab28c8665fd83128afe915c6f54238db9db78ecd3dac
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
# !SLIDE :capture_code_output true # Synchronous HTTP/XML service. require 'example_helper' module App; include ASIR::Client; end begin App.asir.transport = t = ASIR::Transport::Webrick.new(:uri => "http://localhost:31913/") t.encoder = ASIR::Coder::XML.new server_process do t.prepare_server! t.run_server! end pr App.asir.eval("2 + 2") sleep 1 rescue Object => err $stderr.puts "#{err.inspect}\n#{err.backtrace * "\n"}" ensure t.close rescue nil; sleep 1 server_kill end # !SLIDE END # EXPECT: : client process # EXPECT: : server process # EXPECT: : pr: 4
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asir_xml-1.1.12 | example/ex01.rb |
asir_xml-1.1.11 | example/ex01.rb |
asir_xml-1.1.10 | example/ex01.rb |