Skip to content

Function: rewriteServingBody()

rewriteServingBody(body): string

Parse, sanitize, and re-serialize a /serving-endpoints/... POST body. Returns the original string verbatim when the body is not JSON or no rewrite was needed.

string

string