simple_http_service 0.1.3.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile +7 -0
- data/Gemfile.lock +7 -4
- data/README.md +5 -1
- data/doc/SimpleHttpService/Client.html +929 -0
- data/doc/SimpleHttpService/Error.html +124 -0
- data/doc/SimpleHttpService.html +202 -0
- data/doc/_index.html +137 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +503 -0
- data/doc/file.README.html +220 -0
- data/doc/file_list.html +59 -0
- data/doc/frames.html +22 -0
- data/doc/index.html +220 -0
- data/doc/js/app.js +344 -0
- data/doc/js/full_list.js +242 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +150 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/simple_http_service/client.rb +3 -1
- data/lib/simple_http_service/version.rb +1 -1
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe5f7fd7f797bc6908353350c9a422d183597c3c76f8dc41191b5262461f6f25
|
4
|
+
data.tar.gz: 29d85277000b1114f53f55c0ebb67b605a9e800d428dc801f317e67fa6e752eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc83c98ca612a060e8529aece79dace4485578148e010b2fece73f01ada81a64ca88361a3f8b4768be4ba4a89977e46cd2d3f6ab8152d7995d5e92452f54e443
|
7
|
+
data.tar.gz: cf624a45b825afa91df28823161f5d570ef27c05408572e1eb881639037bf1e154df17d419980726cfbff4e435f7e60497cfbad69701db0a10b90affcfd6fe21
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -4,3 +4,10 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in simple_http_service.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
|
9
|
+
group :development, :test do
|
10
|
+
gem 'rspec', '~> 3.13.0'
|
11
|
+
gem 'rspec-core', '~> 3.13.1'
|
12
|
+
gem 'yard'
|
13
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_http_service (0.1.
|
4
|
+
simple_http_service (0.1.4)
|
5
5
|
net-http (~> 0.4.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
rspec-core (~> 3.13.0)
|
16
16
|
rspec-expectations (~> 3.13.0)
|
17
17
|
rspec-mocks (~> 3.13.0)
|
18
|
-
rspec-core (3.13.
|
18
|
+
rspec-core (3.13.2)
|
19
19
|
rspec-support (~> 3.13.0)
|
20
20
|
rspec-expectations (3.13.0)
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -24,7 +24,8 @@ GEM
|
|
24
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
25
25
|
rspec-support (~> 3.13.0)
|
26
26
|
rspec-support (3.13.1)
|
27
|
-
uri (0.12.
|
27
|
+
uri (0.12.1)
|
28
|
+
yard (0.9.37)
|
28
29
|
|
29
30
|
PLATFORMS
|
30
31
|
ruby
|
@@ -32,8 +33,10 @@ PLATFORMS
|
|
32
33
|
DEPENDENCIES
|
33
34
|
bundler (~> 2.5.10)
|
34
35
|
rake (~> 10.0)
|
35
|
-
rspec (~> 3.0)
|
36
|
+
rspec (~> 3.13.0)
|
37
|
+
rspec-core (~> 3.13.1)
|
36
38
|
simple_http_service!
|
39
|
+
yard
|
37
40
|
|
38
41
|
BUNDLED WITH
|
39
42
|
2.5.11
|
data/README.md
CHANGED
@@ -36,7 +36,10 @@ client = SimpleHttpService.new(
|
|
36
36
|
open_timeout: 5,
|
37
37
|
read_timeout: 10,
|
38
38
|
write_timeout: 5,
|
39
|
-
max_retries: 3
|
39
|
+
max_retries: 3,
|
40
|
+
additional_headers: {
|
41
|
+
'X-Request-Id': '12345'
|
42
|
+
}
|
40
43
|
)
|
41
44
|
```
|
42
45
|
### Making a Request
|
@@ -55,6 +58,7 @@ puts response.body
|
|
55
58
|
- `write_timeout`: Timeout for writing the request (default is false).
|
56
59
|
- `max_retries`: The number of times to retry the request in case of failure.
|
57
60
|
- `request_body`: The body of the request (used for POST and PUT requests).
|
61
|
+
- `additional_headers`: Additional headers to include in the request.
|
58
62
|
|
59
63
|
### Example
|
60
64
|
Here's a complete example of using `SimpleHttpService` to make a `GET` request:
|