diff --git a/lib/httpsensible/client.rb b/lib/httpsensible/client.rb index a6fa767..6eadea4 100644 --- a/lib/httpsensible/client.rb +++ b/lib/httpsensible/client.rb @@ -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 diff --git a/lib/httpsensible/version.rb b/lib/httpsensible/version.rb index 906b908..54711f1 100644 --- a/lib/httpsensible/version.rb +++ b/lib/httpsensible/version.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Httpsensible - VERSION = "0.2.2" + VERSION = "0.3.0" end