MessageHeaders.get

Gets the value of header @name in @hdrs.

This method was supposed to work correctly for both single-valued and list-valued headers, but because some HTTP clients/servers mistakenly send multiple copies of headers that are supposed to be single-valued, it sometimes returns incorrect results. To fix this, the methods soup_message_headers_get_one() and soup_message_headers_get_list() were introduced, so callers can explicitly state which behavior they are expecting.

More...
class MessageHeaders
string
get
(
string name
)

Parameters

name string

header name

Return Value

Type: string

as with soup_message_headers_get_list().

Detailed Description

Deprecated: Use soup_message_headers_get_one() or soup_message_headers_get_list() instead.

Meta