
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
= http-requestor
A Wrapper around Net/HTTP which allows you to perform HTTP Requests in a simple way.
== Installation
gem install http-requestor
== Usage
=== Initialize a domain, and send request to multiple paths
http = HTTP::Requestor.new("http://www.mydomain.com")
get_request = http.get(path, parameters, headers) post_request = http.post(path, parameters, headers) put_request = http.put(path, parameters, headers) delete_request = http.delete(path, parameters, headers)
=== Get a response right away
HTTP::Requestor.request(domain, request_type, path, parameters, headers)
OR you can do it the other way
HTTP::Requestor.request_with_url(url, request_type, data, headers)
=== HTTP Basic Authentication
HTTP::Requestor.send_basic_auth_request(url, username, password)
=== Multipart Form Post
uri = "http://some_domain/somepath" data = {:file => File.open("testfile.txt")} response = HTTP::Requestor.multipart_request(uri, "post | put", data)
http = HTTP::Requestor.new("http://www.mydomain.com") response = http.post_multipart(some_path, {:file => File.open("testfile.txt")}) response = http.put_multipart(some_path, {:file => File.open("testfile.txt")})
=== More HTTP Verbs
You can also use other HTTP Verbs such as OPTIONS, PATCH, MOVE, HEAD, TRACE
By instantiating the HTTP::Requestor class
http = HTTP::Requestor.new("http://www.mydomain.com")
http.options(path, parameters, headers) http.patch(path, parameters, headers) http.move(path, parameters, headers) http.head(path, parameters, headers) http.trace(path, parameters, headers)
Directly calling the request method
HTTP::Requestor.request(domain, request_type, path, parameters, headers)
== Issues and Suggestions
Please report all the issues in the Github Issues Page, suggestions are also welcome. You can also mail me at rohit0981989[at]gmail[dot]com for the same.
FAQs
Unknown package
We found that http-requestor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.