0

HTTP サーバーに到達できず、HTTP クライアントがサーバーに POST 要求を送信しようとしている場合、Post コンテンツを送信する機会はありますか?

より具体的には、 writeTo 関数に特別なロジックがあり、Http サーバーに到達できない場合に実行されるかどうかを知りたいです。

public interface HttpEntity {
  boolean isRepeatable();

  boolean isChunked();

  long getContentLength();

  Header getContentType();

  Header getContentEncoding();

  InputStream getContent() throws IOException, IllegalStateException;

  void writeTo(OutputStream var1) throws IOException;

  boolean isStreaming();

  void consumeContent() throws IOException;
}
4

0 に答える 0