@microsoft.azure/autorest.testserver
Version:
Autorest test server.
16 lines • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.json = void 0;
/**
* Serialize the provided content as json to use in a MockResponse body.
* @content Object to return as json.
* @returns {MockResponseBody} response body with application/json content type.
*/
const json = (content) => {
return {
contentType: "application/json",
rawContent: JSON.stringify(content),
};
};
exports.json = json;
//# sourceMappingURL=response-content-utils.js.map