From 6ae03228ac9effc8f774133fb7303536740abaf2 Mon Sep 17 00:00:00 2001 From: Somefive Date: Mon, 8 Aug 2022 20:11:22 +0800 Subject: [PATCH] Fix: add status code for cue struct Signed-off-by: Somefive --- pkg/stdlib/pkgs/http.cue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/stdlib/pkgs/http.cue b/pkg/stdlib/pkgs/http.cue index e18dc69cb..5810d35b5 100644 --- a/pkg/stdlib/pkgs/http.cue +++ b/pkg/stdlib/pkgs/http.cue @@ -8,12 +8,15 @@ body: string header: [string]: string trailer: [string]: string + ... } tls_config?: secret: string response: { body: string header?: [string]: [...string] trailer?: [string]: [...string] + statusCode: number + ... } ... }