Skip to content

xyzkab/http-repeater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-repeater

This is a request extension for HTTP module and inspired by Burpsuite Repeater tool.

Installation

Add this line to your application's Gemfile:

gem 'http-repeater', :git => 'https://github.com/xyzkab/http-repeater'

And then execute:

$ bundle install

Documentation

Basic Usage

Here's some simple examples to get you started:

>> require 'http/repeater'
=> true
>> HTTP::Repeater.configure do |conf|
?>  conf.base_uri.host = "my.private.api"
>>  conf.base_uri.ssl  = true
>>  conf.base_headers.content_type = "application/json"
>> end
=> #<HTTP::Configuration:0x0000561dd25be488 @base_uri=#<HTTP::Configuration::BaseURI:0x0000561dd25be410 @host="my.private.api", @port=80, @ssl=true>, @base_headers=#<HTTP::Configuration::BaseHeaders:0x0000561dd25be398 @headers=#<HTTP::Headers {"Content-Type"=>"application/json"}>>>
>> request = HTTP::Repeater.get("/users")
=> #<HTTP::Response/1.1 200 OK { "Content-Type"=>"application/json", "Connection"=>"close"}>
>> request.json?
=> true
>> request.json
=> {:users => [{:id => 1, :name => "administrator"}]}

About

This is a request extension for HTTP module and inspired by Burpsuite Repeater tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages