Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Net::HTTP::Options does not allow response body

I am writing a script to test various web-services in ruby. To make http requests thus far I have been using Net::HTTP but today I realized I needed to make an OPTIONS request and retrieve some JSON from the response.

Unfortunately ruby does not currently support this: https://bugs.ruby-lang.org/issues/8429

Does anyone know of gem that supports this or some other way to get this response?

like image 338
Zane DeGraffenried Avatar asked Jul 15 '26 01:07

Zane DeGraffenried


1 Answers

This is an alternative which supports lot of options

https://rubygems.org/gems/curb

like image 188
sethi Avatar answered Jul 17 '26 15:07

sethi