mappersmith
Version:
It is a lightweight rest client for node.js and the browser
13 lines (12 loc) • 419 B
TypeScript
import type { Middleware } from './index';
export declare const CONTENT_TYPE_JSON = "application/json;charset=utf-8";
/**
* Automatically encode your objects into JSON
*
* Example:
* client.User.all({ body: { name: 'bob' } })
* // => body: {"name":"bob"}
* // => header: "Content-Type=application/json;charset=utf-8"
*/
export declare const EncodeJsonMiddleware: Middleware;
export default EncodeJsonMiddleware;