UNPKG

@lifi/compose-spec

Version:

Public wire-format types and schemas for Compose flows

14 lines (11 loc) 589 B
/** * HTTP header names on the compose wire. * * Both the SDK (which sends the request header) and the backend (which reads it * and answers with the response header) are part of the same handshake, so the * names belong to the wire format rather than to either side of it. */ /** Compose contract version the client was built against. Sent on every request. */ export const COMPOSER_SDK_VERSION_HEADER = 'x-lifi-composer-sdk'; /** Compose contract version the backend serves. Returned on every compose response. */ export const COMPOSE_VERSION_HEADER = 'x-lifi-composer-version';