Skip to content

Commit 103a1da

Browse files
AllanZhengYPsrchase
authored andcommitted
ec2 query builder & marshaller & unmarshaller (#50)
* implement ec2-marshaller * enable xml parser to handle resultWrapper and requestId in body; impliment a query-unmarshaller to unmarshal query including ec2 * sort the keys in structure shape * add httpResponse to ResponseMetadata * move query-marshaller & query-unmarshaller to protocol-query
1 parent b0654c3 commit 103a1da

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/types/src/protocol.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export interface Member {
1616
streaming?: boolean;
1717
xmlAttribute?: boolean;
1818
xmlNamespace?: XmlNamespace;
19+
queryName?: string;
20+
resultWrapper?: string;
1921
}
2022

2123
export interface Shape {

packages/types/src/response.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import {HeaderBag} from './http';
1+
import {HeaderBag, HttpResponse} from './http';
22

33
export interface ResponseMetadata {
4-
statusCode: number;
4+
httpResponse: HttpResponse;
55
requestId?: string;
66
extendedRequestId?: string;
77
cfId?: string;
8-
responseHeaders: HeaderBag;
98
}
109

1110
export interface MetadataBearer {

0 commit comments

Comments
 (0)