1 /* 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"). 5 * You may not use this file except in compliance with the License. 6 * A copy of the License is located at 7 * 8 * http://aws.amazon.com/apache2.0 9 * 10 * or in the "license" file accompanying this file. This file is distributed 11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 * express or implied. See the License for the specific language governing 13 * permissions and limitations under the License. 14 */ 15 16 package software.amazon.awssdk.http.nio.netty.internal.nrs; 17 18 import io.netty.handler.codec.http.HttpContent; 19 import io.netty.handler.codec.http.HttpMessage; 20 import org.reactivestreams.Publisher; 21 import software.amazon.awssdk.annotations.SdkInternalApi; 22 23 /** 24 * Combines {@link HttpMessage} and {@link Publisher} into one 25 * message. So it represents an http message with a stream of {@link HttpContent} 26 * messages that can be subscribed to. 27 * 28 * Note that receivers of this message <em>must</em> consume the publisher, 29 * since the publisher will exert back pressure up the stream if not consumed. 30 * 31 * This class contains source imported from https://github.com/playframework/netty-reactive-streams, 32 * licensed under the Apache License 2.0, available at the time of the fork (1/31/2020) here: 33 * https://github.com/playframework/netty-reactive-streams/blob/master/LICENSE.txt 34 * 35 * All original source licensed under the Apache License 2.0 by playframework. All modifications are 36 * licensed under the Apache License 2.0 by Amazon Web Services. 37 */ 38 @SdkInternalApi 39 public interface StreamedHttpMessage extends HttpMessage, Publisher<HttpContent> { 40 } 41