Skip to content

Instantly share code, notes, and snippets.

@vonKingsley
Last active February 8, 2018 22:33
Show Gist options
  • Save vonKingsley/003d965dd7ca1bcc22fb4ff22e323cf2 to your computer and use it in GitHub Desktop.
Save vonKingsley/003d965dd7ca1bcc22fb4ff22e323cf2 to your computer and use it in GitHub Desktop.
require "http"
module Thing
class MyClass < IO
def seek(offset)
ret = nil
ret + 1
end
def rewind
seek(0)
end
def read(slice : Slice(UInt8))
1
end
def write(slice : Slice(UInt8))
1
end
end
end
response = HTTP::Client.head "http://google.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment