servicetalk-grpc-netty/src/main/java/io/servicetalk/grpc/netty/GrpcUtils.java
// and is also used in the api module as that would lead to circular dependency.
and is also used in the api module as that would lead to circular dependency.
and is also used in the api module as that would lead to circular dependency .
static void initResponse(final HttpResponseMetaData response,
                             final CharSequence contentType,
                             @Nullable final CharSequence encoding,
                             @Nullable final CharSequence acceptedEncoding) {
        final HttpHeaders headers = response.headers();
        headers.set(SERVER, SERVICETALK_USER_AGENT);
        headers.set(CONTENT_TYPE, contentType);
        if (encoding != null) {
            headers.set(GRPC_MESSAGE_ENCODING, encoding);
        }
        if (acceptedEncoding != null) {
            headers.set(GRPC_MESSAGE_ACCEPT_ENCODING, acceptedEncoding);
        }
    }
static void initResponse ( final HttpResponseMetaData response , final CharSequence contentType , @ Nullable final CharSequence encoding , @ Nullable final CharSequence acceptedEncoding ) { final HttpHeaders headers = response . headers ( ) ; headers . set ( SERVER , SERVICETALK_USER_AGENT ) ; headers . set ( CONTENT_TYPE , contentType ) ; if ( encoding != null ) { headers . set ( GRPC_MESSAGE_ENCODING , encoding ) ; } if ( acceptedEncoding != null ) { headers . set ( GRPC_MESSAGE_ACCEPT_ENCODING , acceptedEncoding ) ; } }
and is also used in the api module as that would lead to circular dependency.
and is also used in the api module as that would lead to circular dependency .
// The response status is 200 no matter what. Actual status is put in trailers.