Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
An httpbin like Rack app for RSpec.
[!NOTE] This implementation is forked from weapp/foxyrb.
gem install rspec-httpbin
RSpec::HTTPBin
is a Rack app. You can mount it like:
require 'capybara'
let!(:server) do
server = Capybara::Server.new(RSpec::HTTPBin)
server.boot
server
end
And do a test:
require 'http'
res = HTTP.get("#{server.base_url}/get")
json = JSON.parse(res.body.to_s)
expect(json['headers']['User-Agent']).to start_with('http.rb/')
The following API endpoints are supported:
/get
(GET)/post
(POST)/put
(PUT)/delete
(DELETE)/patch
(PATCH)/status/{status}
(any HTTP method)/get
, /post
, put
, /delete
and patch
return an HTTP response with the following fields.
data
: Request body.files
: Not implemented. TBD.form
: Form data.json
: JSON data.args
: Parsed query strings.headers
: Headers.origin
: Origin.url
: URL.FAQs
Unknown package
We found that rspec-httpbin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.