getHeader method

dynamic getHeader(
  1. String name
)

Get the value of the given header name at the given position.

Implementation

dynamic getHeader(String name) {
  dynamic header = headers![utils.headerize(name)];

  if (header != null) {
    if (header[0] != null) {
      return header[0]['raw'];
    }
  } else {
    return null;
  }
}