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