File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
clients/client-lex-runtime-v2
codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
8
8
import { Hash } from "@aws-sdk/hash-node" ;
9
9
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry" ;
10
10
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider" ;
11
- import { NodeHttpHandler , streamCollector } from "@aws-sdk/node-http-handler" ;
11
+ import { NodeHttp2Handler , streamCollector } from "@aws-sdk/node-http-handler" ;
12
12
import { fromBase64 , toBase64 } from "@aws-sdk/util-base64-node" ;
13
13
import { calculateBodyLength } from "@aws-sdk/util-body-length-node" ;
14
14
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node" ;
@@ -34,7 +34,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
34
34
eventStreamSerdeProvider,
35
35
maxAttempts : loadNodeConfig ( NODE_MAX_ATTEMPT_CONFIG_OPTIONS ) ,
36
36
region : loadNodeConfig ( NODE_REGION_CONFIG_OPTIONS , NODE_REGION_CONFIG_FILE_OPTIONS ) ,
37
- requestHandler : new NodeHttpHandler ( ) ,
37
+ requestHandler : new NodeHttp2Handler ( ) ,
38
38
sha256 : Hash . bind ( null , "sha256" ) ,
39
39
streamCollector,
40
40
utf8Decoder : fromUtf8 ,
Original file line number Diff line number Diff line change 27
27
import software .amazon .smithy .typescript .codegen .TypeScriptSettings ;
28
28
import software .amazon .smithy .typescript .codegen .TypeScriptWriter ;
29
29
import software .amazon .smithy .typescript .codegen .integration .TypeScriptIntegration ;
30
+ import software .amazon .smithy .utils .ListUtils ;
30
31
import software .amazon .smithy .utils .MapUtils ;
31
32
32
33
public class AddHttp2Dependency implements TypeScriptIntegration {
@@ -57,6 +58,6 @@ private static boolean isHttp2Applicable(ServiceShape service) {
57
58
String serviceId = service .getTrait (ServiceTrait .class ).map (ServiceTrait ::getSdkId ).orElse ("" );
58
59
// TODO: Add "Kinesis" service to http2 applicable, but blocked by potential breaking change.
59
60
// Reference: https://github.com/aws/aws-sdk-js-v3/issues/1206
60
- return serviceId . equals ( " Transcribe Streaming" );
61
+ return ListUtils . of ( "Lex Runtime V2" , " Transcribe Streaming"). contains ( serviceId );
61
62
}
62
63
}
You can’t perform that action at this time.
0 commit comments