Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/httpsensible/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ def with_authentication(authentication)
self
end

# TODO: test this
def with(options, &blk)
@client = @client.with(options, &blk)
self
end

# TODO: test this
def request(*args, **options)
@client = @client.request(*args, *options)
self
end

def with_headers(headers)
@client = @client.with(headers: headers)
self
Expand Down
2 changes: 1 addition & 1 deletion lib/httpsensible/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module Httpsensible
VERSION = "0.2.2"
VERSION = "0.3.0"
end