FetchLinkMetadata method

Future<FetchLinkMetadataResponse> FetchLinkMetadata(
  1. FetchLinkMetadataRequest input, {
  2. Map<String, String> headers = const {},
})

Implementation

Future<FetchLinkMetadataResponse> FetchLinkMetadata(FetchLinkMetadataRequest input, {Map<String,String> headers = const {}}) async {
	var response = await $http.post(this.server.replace(path: "/protocol.mediaproxy.v1.MediaProxyService/FetchLinkMetadata"), body: input.writeToBuffer(), headers: {"content-type": "application/hrpc"}..addAll(headers)..addAll(this.commonHeaders));
	if (response.statusCode != 200) { throw response; }
	return FetchLinkMetadataResponse.fromBuffer(response.bodyBytes);
}