Class: JIRA::JwtClient
- Inherits:
-
HttpClient
- Object
- RequestClient
- HttpClient
- JIRA::JwtClient
- Defined in:
- lib/jira/jwt_client.rb
Instance Attribute Summary
Attributes inherited from HttpClient
Instance Method Summary collapse
- #make_multipart_request(url, data, headers = {}) ⇒ Object
- #make_request(http_method, url, body = '', headers = {}) ⇒ Object
Methods inherited from HttpClient
#authenticated?, #initialize, #make_cookie_auth_request, #uri
Methods inherited from RequestClient
Constructor Details
This class inherits a constructor from JIRA::HttpClient
Instance Method Details
#make_multipart_request(url, data, headers = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/jira/jwt_client.rb', line 14 def make_multipart_request(url, data, headers = {}) @http_method = :post jwt_header = build_jwt_header(url) super(url, data, headers.merge(jwt_header)) end |
#make_request(http_method, url, body = '', headers = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/jira/jwt_client.rb', line 7 def make_request(http_method, url, body = '', headers = {}) @http_method = http_method jwt_header = build_jwt_header(url) super(http_method, url, body, headers.merge(jwt_header)) end |