class EL_CURL_HEADER_TABLE
Curl header table
note
description: "Curl header table"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-09-22 16:09:18 GMT (Sunday 22nd September 2024)"
revision: "9"
class
EL_CURL_HEADER_TABLE
inherit
EL_HASH_TABLE [STRING, STRING]
EL_SHARED_CURL_API
create
make_equal
feature {EL_HTTP_CONNECTION_IMPLEMENTATION} -- Access
to_curl_string_list: POINTER
local
header: STRING
do
create header.make (40)
from start until after loop
header.append (key_for_iteration); header.append_character (':')
if not item_for_iteration.is_empty then
header.append_character (' ')
header.append (item_for_iteration)
end
Result := curl.extend_string_list (Result, header)
header.wipe_out
forth
end
end
end