headerValue method

  1. @override
String? headerValue(
  1. String name
)
override

Returns the first value of the given name of request's headers.

  • Unlike HttpHeaders.value, this method won't throw any exception.
  • Rather, it simply picks the first header if any.

Implementation

@override
String? headerValue(String name) => origin.headerValue(name);