src/FedoraApi.php
public function createResource(
        $uri = "",
        $content = null,
        $headers = []
    ) {
        $options = ['http_errors' => false];

        // Set content.
        $options['body'] = $content;

        // Set headers.
        $options['headers'] = $headers;

        return $this->client->request(
            'POST',
            $uri,
            $options
        );
    }
public function createResource(
        $uri = "",
        $content = null,
        $headers = []
    ) {
        $options = ['http_errors' => false];

        // Set content.
        $options['body'] = $content;

        // Set headers.
        $options['headers'] = $headers;

        return $this->client->request(
            'POST',
            $uri,
            $options
        );
    }
public function createResource ( $ uri = "" , $ content = null , $ headers = [ ] ) { $ options = [ 'http_errors' => false ] ; // Set content. $ options [ 'body' ] = $ content ; // Set headers. $ options [ 'headers' ] = $ headers ; return $ this -> client -> request ( 'POST' , $ uri , $ options ) ; }
Creates a new resource in Fedora.

@param string    $uri                  Resource URI
@param string    $content              String or binary content
@param array     $headers              HTTP Headers

@return ResponseInterface
Creates a new resource in Fedora .