Ahmed IbrahimOriginal post
Rank 1: Thread
Hi
I know that to return response from Appwrite cloud function I do the following
Dart
return context.res.send(body);but how can I add value to the returned header. For example
Dart
final tokens = 10;// I want to add the variable "tokens" to the hader of the returned responsereturn context.res.send(body);In the above example I want to **append ** the tokens to the **header **not the body
Summary
The user wants to know how to add a value to the headers in Cloud Functions. The solution is to use the `send` function and pass the headers as a third parameter. Example code is provided.