Skip to main content

register_ldp

Function register_ldp 

Source
pub fn register_ldp(
    registry: &mut ProtocolRegistry,
    config: Option<LdpAdapterConfig>,
)
Expand description

Register the LDP adapter with a ProtocolRegistry.

§Arguments

  • registry — The protocol registry to register with.
  • config — Optional LDP configuration. Uses defaults if None.

§URL Routing

Registers "ldp://" as the URL prefix. Any URL starting with ldp:// will be routed to the LDP adapter.