fix(rpc): protocol Route.fulfill (#3200)
This commit is contained in:
parent
3bd97776b8
commit
52eb6c609a
|
|
@ -2055,13 +2055,13 @@ export type RouteContinueOptions = {
|
|||
};
|
||||
export type RouteContinueResult = void;
|
||||
export type RouteFulfillParams = {
|
||||
status: number,
|
||||
headers: {
|
||||
status?: number,
|
||||
headers?: {
|
||||
name: string,
|
||||
value: string,
|
||||
}[],
|
||||
body: string,
|
||||
isBase64: boolean,
|
||||
body?: string,
|
||||
isBase64?: boolean,
|
||||
};
|
||||
export type RouteFulfillOptions = {
|
||||
|
||||
|
|
|
|||
|
|
@ -1694,16 +1694,17 @@ Route:
|
|||
|
||||
fulfill:
|
||||
parameters:
|
||||
status: number
|
||||
# default is 200
|
||||
status: number?
|
||||
headers:
|
||||
type: array
|
||||
type: array?
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name: string
|
||||
value: string
|
||||
body: string
|
||||
isBase64: boolean
|
||||
body: string?
|
||||
isBase64: boolean?
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -803,13 +803,13 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
|
|||
postData: tOptional(tBinary),
|
||||
});
|
||||
scheme.RouteFulfillParams = tObject({
|
||||
status: tNumber,
|
||||
headers: tArray(tObject({
|
||||
status: tOptional(tNumber),
|
||||
headers: tOptional(tArray(tObject({
|
||||
name: tString,
|
||||
value: tString,
|
||||
})),
|
||||
body: tString,
|
||||
isBase64: tBoolean,
|
||||
}))),
|
||||
body: tOptional(tString),
|
||||
isBase64: tOptional(tBoolean),
|
||||
});
|
||||
scheme.ResponseBodyParams = tOptional(tObject({}));
|
||||
scheme.ResponseFinishedParams = tOptional(tObject({}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue