'Print the http request on the main terminal
:param self: A TuiMain object
:type self: TuiMain
:param start_row_num: start line to print the http request
type start_row_num: int
:param http_output: string of the http requests
:type http_output: str'

def print_http_requests(self, screen, start_row_num, http_output):

    requests = http_output.splitlines()
    match_str = '(.*\\s)(request    from\\s)(.*)(\\sfor|with\\s)(.*)'
    for request in requests:
        match = re.match(match_str, request)
        if (match is None):
            continue
        request_type = match.group(1)
        request_from = match.group(2)
        ip_address = match.group(3)
        for_or_with = match.group(4)
        resource = match.group(5)
        start_col = 0
        screen.addstr(start_row_num, start_col, '[')
        start_col += 1
        screen.addstr(start_row_num, start_col, '*', self.yellow_text)
        start_col += 1
        screen.addstr(start_row_num, start_col, ']    ')
        start_col += 2
        screen.addstr(start_row_num, start_col, request_type, self.yellow_text)
        start_col += len(request_type)
        screen.addstr(start_row_num, start_col, request_from)
        start_col += len(request_from)
        screen.addstr(start_row_num, start_col, ip_address, self.yellow_text)
        start_col += len(ip_address)
        screen.addstr(start_row_num, start_col, for_or_with)
        start_col += len(for_or_with)
        screen.addstr(start_row_num, start_col, resource, self.yellow_text)
        start_row_num += 1
