TbdexHttpServer

TBDex HTTP server responsible for handling RFQs, orders, and other interactions.

Constructors

Link copied to clipboard
constructor(config: TbdexHttpServerConfig)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun configure(app: <Error class: unknown class>)

Configures the Ktor application with necessary settings, including content negotiation.

Link copied to clipboard

Adds a CreateExchangeCallback for handling requests to create an exchange.

Link copied to clipboard

Adds a GetExchangeCallback for handling requests for an exchange with a specific exchangeId.

Link copied to clipboard

Adds a GetExchangesCallback for handling requests for exchanges.

Link copied to clipboard

Adds a GetOfferingsCallback for handling requests for offerings.

Link copied to clipboard

Adds a SubmitOrderCallback for handling requests to submit an order.

Link copied to clipboard

Adds a SubmitOrderCallback for handling requests to submit an order.

Link copied to clipboard
fun start()

Starts the embedded Netty server.

Link copied to clipboard
fun stop()

Stops the embedded Netty server.