Adding TODO about HttpContent.getBuffer

This commit is contained in:
Joakim Erdfelt 2022-07-20 14:25:50 -05:00
parent f9b43dd774
commit 68ddee69af
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,6 @@ package org.eclipse.jetty.http;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.util.Map;
import org.eclipse.jetty.http.MimeTypes.Type;
@ -61,6 +60,11 @@ public interface HttpContent
Map<CompressedContentFormat, ? extends HttpContent> getPrecompressedContents();
/**
* TODO: get rid of this, use the Resource instead
* @deprecated use {@link Resource} from {@link #getResource()} to access buffers instead
*/
@Deprecated
ByteBuffer getBuffer();
void release();