semantic-network
Version:
A utility library for manipulating a list of links that form a semantic interface to a network of resources.
9 lines • 409 B
JavaScript
import { __awaiter } from "tslib";
import { HttpUtil } from 'semantic-link';
export function defaultPostFactory(link, rel, document, options) {
return __awaiter(this, void 0, void 0, function* () {
const { contentType = undefined } = Object.assign({}, options);
return yield HttpUtil.post(link, rel, document, contentType, options);
});
}
//# sourceMappingURL=defaultPostFactory.js.map