bbk-http 0.1.0.200752 → 0.1.0.200755
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bbk/http/route_info.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c700edecd71e8671b1db18fe5dcc1de2ac157ee13b5de2195a86eb65e9243a5b
|
4
|
+
data.tar.gz: b475e1dad2736fc63557e80f8d281b33ea7586b56744bfcb3ca4957d67cca487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f6485b7537e8b00347fe984daa8124af5217adf2e805966b175b9681a7ad32c2a68eb370b9646d06e02c070616fb9a6221901af89d6eddee8672306f6503b4
|
7
|
+
data.tar.gz: ff5a72f14e15508f02e3c86c74c5e6ee294af48b5f8c64404e403417c56d7bc1d5fc56e384790f1655767faf773edb0d6e77193ed8177cb833a041c886da5523
|
data/Gemfile.lock
CHANGED
data/lib/bbk/http/route_info.rb
CHANGED
@@ -3,9 +3,11 @@ module BBK
|
|
3
3
|
class RouteInfo
|
4
4
|
|
5
5
|
|
6
|
+
DEFAULT_METHOD = :post
|
7
|
+
|
6
8
|
attr_reader :uri, :method, :headers, :options
|
7
9
|
|
8
|
-
def initialize(uri, method
|
10
|
+
def initialize(uri, method: DEFAULT_METHOD, headers: {}, options: {})
|
9
11
|
@uri = uri
|
10
12
|
@method = method
|
11
13
|
@headers = headers
|