getHeadersBykey method

String getHeadersBykey(
  1. String name
)

Implementation

String getHeadersBykey(String name) {
  String target = '';
  request.headers.forEach((key, value) {
    if (name == key) {
      target = value.toString();
    }
  });
  return target;
}