mirror of
https://github.com/github/codeql.git
synced 2026-04-12 10:34:02 +02:00
Change the capitalisation of HTTP to Http, to conform to the QL style guide. Leave the HTTP module in Concepts alone, so it remains consistent with the Concepts in other language libraries.
27 lines
623 B
Ruby
27 lines
623 B
Ruby
require "httpclient"
|
|
|
|
resp1 = HTTPClient.get("http://example.com/")
|
|
resp1.body
|
|
|
|
resp2 = HTTPClient.post("http://example.com/", body: "some_data")
|
|
resp2.content
|
|
|
|
resp3 = HTTPClient.put("http://example.com/", body: "some_data")
|
|
resp3.http_body
|
|
|
|
resp5 = HTTPClient.delete("http://example.com/")
|
|
resp5.dump
|
|
|
|
resp6 = HTTPClient.head("http://example.com/")
|
|
resp6.body
|
|
|
|
resp7 = HTTPClient.options("http://example.com/")
|
|
resp7.content
|
|
|
|
resp8 = HTTPClient.trace("http://example.com/")
|
|
resp8.http_body
|
|
|
|
resp9 = HTTPClient.get_content("http://example.com/")
|
|
|
|
resp10 = HTTPClient.post_content("http://example.com/", body: "some_data")
|