Skip to main content

post_to_container

Function post_to_container 

Source
pub async fn post_to_container(
    container_url: &str,
    body: &[u8],
    content_type: &str,
    slug: Option<&str>,
    bearer: Option<&str>,
) -> Result<(u16, Option<String>), ConsumerError>
Expand description

POST into an LDP container (create resource). Returns Location if present.