public void addContent()

in src/main/java/com/microsoft/azure/proton/transport/proxy/impl/ProxyResponseImpl.java [181:194]


    public void addContent(ByteBuffer content) {
        Objects.requireNonNull(content, "'content' cannot be null.");

        int size = content.remaining();

        if (size <= 0) {
            throw new IllegalArgumentException("There was no content to add to current HTTP response.");
        }

        final byte[] responseBytes = new byte[content.remaining()];
        content.get(responseBytes);

        this.contents.put(responseBytes);
    }