Sha256: df8192a38e38ff3d92eb7133f5cfb71429a134615770d591feea27d489cb2e6a
Contents?: true
Size: 275 Bytes
Versions: 5
Compression:
Stored size: 275 Bytes
Contents
#!/usr/bin/env ruby $:<< '../lib' << 'lib' require 'goliath' class Upload < Goliath::API def on_headers(env, h) if h['Expect'] == '100-continue' env.stream_send "HTTP/1.1 100 Continue\r\n" end end def response(env) [200, {}, "oh hai"] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
goliath-1.0.4 | examples/upload.rb |
goliath-1.0.2 | examples/upload.rb |
goliath-1.0.1 | examples/upload.rb |
goliath-1.0.0 | examples/upload.rb |
goliath-1.0.0.beta.1 | examples/upload.rb |