Skip to content

Instantly share code, notes, and snippets.

@awesome
Created September 27, 2009 20:09
Show Gist options
  • Save awesome/194974 to your computer and use it in GitHub Desktop.
Save awesome/194974 to your computer and use it in GitHub Desktop.
irb(main):016:0> res = Net::HTTP.post_form(url, {:hello => "world"})
=> #<Net::HTTPOK 200 OK readbody=true>
irb(main):024:0> pp (res.methods - Object.methods).sort
["[]",
"[]=",
"add_field",
"basic_auth",
"body",
"canonical_each",
"chunked?",
"code",
"code_type",
"content_length",
"content_length=",
"content_range",
"content_type",
"content_type=",
"delete",
"each",
"each_capitalized",
"each_capitalized_name",
"each_header",
"each_key",
"each_name",
"each_value",
"entity",
"error!",
"error_type",
"fetch",
"form_data=",
"get_fields",
"header",
"http_version",
"initialize_http_header",
"key?",
"length",
"main_type",
"message",
"msg",
"proxy_basic_auth",
"range",
"range=",
"range_length",
"read_body",
"read_header",
"reading_body",
"response",
"set_content_type",
"set_form_data",
"set_range",
"size",
"sub_type",
"to_ary",
"to_hash",
"type_params",
"value"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment