in packages/sdk/src/FlagResolverClient.ts [197:210]
async apply(request: ApplyFlagsRequest): Promise<void> {
const resp = await this.fetchImplementation(
new Request(`${this.baseUrl}/flags:apply`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(ApplyFlagsRequest.toJSON(request)),
}),
);
if (!resp.ok) {
throw new Error(`${resp.status}: ${resp.statusText}`);
}
}