getHeaders method
Get the header/s of the given name.
Implementation
List<dynamic> getHeaders(String name) {
List<dynamic>? headers = this.headers![utils.headerize(name)];
List<dynamic> result = <dynamic>[];
if (headers == null) {
return <dynamic>[];
}
for (dynamic header in headers) {
result.add(header['raw']);
}
return result;
}