Project

General

Profile

Actions

User story #5060

closed

Create generic methods for http request

Added by Nicolas CHARLES over 8 years ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Regression:

Description

Here is the list of generic methods that would need to be set:

http_get(url) --> http_get_headers(url, "")
http_get_headers(url, headers) --> http_headers("get", url, headers)
http_get_check_status(url, expected_status) --> http_get_check_status_headers(url, expected_status, "")
http_get_check_status_headers(url, expected_status, headers) --> http_check_status_headers("get", url, expected_status, headers)
http_get_check_content(url, expected_content) --> http_get_check_content_headers(url, expected_content, "")
http_get_check_content_headers(url, expected_content, headers) --> http_check_content_headers("get", url, expected_content, headers)
http_get_check_content_check_status(url, expected_content, expected_status) --> http_get_check_content_check_status_headers(url, expected_content, expected_status, "")
http_get_check_content_check_status_headers(url, expected_content, expected_status, headers) -->

http_post(url)
http_post_headers(url, heardes)
http_post_content(url, content)
http_post_content_headers(url, content, headers)

http(method, url)
http_headers(method, url, headers)
http_check_status_headers(method, url, expected_status, headers)
http_check_content_headers(method, url, expected_content, headers)
http_content_headers(method, url, content, headers)
http_content_check_status_headers(method, url, content, expected_status, headers)
http_content_check_content_headers(method, url, content, expected_content, expected_status, headers)
http_content_check_content_check_status_headers(method, url, content, expected_content, expected_status, headers) 

This meta ticket tracks the whole set of request, but we'll split the implementation in several times


Subtasks 2 (0 open2 closed)

User story #5061: Create generic method to check a http statusReleasedJonathan CLARKEActions
Bug #5062: Create generic method to send content to a url, with headers and methodReleasedJonathan CLARKEActions
Actions #1

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from New to 13
Actions #2

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from 13 to Pending release
Actions #3

Updated by Vincent MEMBRÉ about 6 years ago

  • Status changed from Pending release to Released
Actions #4

Updated by Alexis Mousset 4 months ago

  • Target version changed from 0.x to ncf-0.x
Actions #5

Updated by Alexis Mousset 4 months ago

  • Project changed from 41 to Rudder
  • Category set to Generic methods
Actions

Also available in: Atom PDF