TOP(About this memo)) > 一覧(Dart) > http
The classes [HttpClient] and [HttpServer] provide low-level HTTPfunctionality.
Instead of using these classes directly, consider using more developer-friendly and composable APIs found in packages For HTTP clients, look at
package:http
.
// http-1.1.0/lib/src/request.dart
class Request extends BaseRequest {
//...
Encoding get encoding {
if (_contentType == null ||
!_contentType!.parameters.containsKey('charset')) {
return _defaultEncoding;
}
return requiredEncodingForCharset(_contentType!.parameters['charset']!);
}
//...
}