createHttpInput static method

Future<HttpInput> createHttpInput(
  1. String url
)

Implementation

static Future<HttpInput> createHttpInput(String url) async {
  final uri = Uri.parse(url);
  final headResponse = await http.head(uri);
  return HttpInput._(uri, headResponse);
}