@ucanto/transport
Version:
ucanto transport
9 lines • 526 B
TypeScript
export { CAR as codec };
export const contentType: "application/vnd.ipld.car";
export function encode<Message extends API.AgentMessage<any>>(message: Message, options?: (API.EncodeOptions & {
headers?: Record<string, string> | undefined;
}) | undefined): API.HTTPRequest<Message>;
export function decode<Message extends API.AgentMessage<any>>({ headers, body }: API.HTTPRequest<Message>): Promise<Message>;
import { CAR } from '@ucanto/core';
import * as API from '@ucanto/interface';
//# sourceMappingURL=request.d.ts.map