def set_headers(context):
    """
    Parameters:

        +--------------+---------------+
        | header_name  | header_value  |
        +==============+===============+
        | header1      | value1        |
        +--------------+---------------+
        | header2      | value2        |
        +--------------+---------------+
    """
    safe_add_http_request_context_to_behave_context(context)
    headers = dict()
    for row in context.table:
        headers[row["header_name"]] = row["header_value"]
        context.http_request_context.headers = headers
Parameters:

        +--------------+---------------+
        | header_name  | header_value  |
        +==============+===============+
        | header1      | value1        |
        +--------------+---------------+
        | header2      | value2        |
        +--------------+---------------+