in packages/sdk/src/FlagResolverClient.ts [255:266]
async apply(request: ApplyFlagsRequest): Promise<void> {
const resp = await this.fetchImplementation(`${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}`);
}
}