Module | Ethon::Easy::Header |
In: |
lib/ethon/easy/header.rb
|
This module contains the logic around adding headers to libcurl.
@api private
Compose libcurl header string from key and value. Also replaces null bytes, because libcurl will complain otherwise.
@example Compose header.
easy.compose_header('User-Agent', 'Ethon')
@param [ String ] key The header name. @param [ String ] value The header value.
@return [ String ] The composed header.
Return header_list.
@example Return header_list.
easy.header_list
@return [ FFI::Pointer ] The header list.