[ Version ( deprecated = true ) ]
public unowned string? @get (string name)
Warning: @get is deprecated.
Gets the value of header name
in this.
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.
this | |
name |
header name |
as with get_list. |