@get


Description:

[ Version ( deprecated = true ) ]
public unowned string? @get (string name)

Warning: @get is deprecated.

Gets the value of header name in this.

Note:

Use get_one or get_list instead.

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 get_one and get_list were introduced, so callers can explicitly state which behavior they are expecting.

Parameters:

this

a MessageHeaders

name

header name

Returns:

as with get_list.




2022 vala-language.org