Once I saw my http-response scripting that accidentally set requires-body=0. It returned an error that $response.body is "undefined". That means, Surge limits resources for scripting as minimum to optimize the performance. I like this idea.
Surge has just support $request.headers when http-response scripting. That is a valuable update. But it is still missing $request.body. Could you @SurgeTeam please support $request.body as same as $response.body? It means that attribute is empty as default to save the cache. It only be used when user set requires-request-body=1 or something else likes that.
$response.body is "undefined"
+1, this would be a super useful feature, when the server side reuses the same URL, and returns different data depending on some field in request body.