Cross Reference: post_caller.rb
xref
: /
ontohub
/
lib
/
uri_fetcher
/
post_caller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
691
N/A
module
UriFetcher
691
N/A
class
PostCaller
<
HTTPCaller
691
N/A
HEADER
= {
'Content-Type'
=>
'
application
/
json
'
}
691
N/A
691
N/A
def
make_http_request
(
uri
, &
block
)
691
N/A
Net
::
HTTP.start
(
uri.hostname
,
uri.port
,
691
N/A
use_ssl
:
uri.scheme
==
'https'
)
do
|
http
|
691
N/A
http.read
_timeout
=
timeout
if
timeout
691
N/A
return
http.request
_post
(
uri
,
data_json
,
HEADER
, &
block
)
691
N/A
end
691
N/A
end
691
N/A
end
691
N/A
end
691
N/A