github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/pkg/tool/http/doc.go (about) 1 // Code generated by cue get go. DO NOT EDIT. 2 3 // Package http provides tasks related to the HTTP protocol. 4 // 5 // These are the supported tasks: 6 // 7 // Get: Do & {method: "GET"} 8 // Post: Do & {method: "POST"} 9 // Put: Do & {method: "PUT"} 10 // Delete: Do & {method: "DELETE"} 11 // 12 // Do: { 13 // $id: *"tool/http.Do" | "http" // http for backwards compatibility 14 // 15 // method: string 16 // url: string // TODO: make url.URL type 17 // 18 // tls: { 19 // // Whether the server certificate must be validated. 20 // verify: *true | bool 21 // // PEM encoded certificate(s) to validate the server certificate. 22 // // If not set the CA bundle of the system is used. 23 // caCert?: bytes | string 24 // } 25 // 26 // request: { 27 // body?: bytes | string 28 // header: [string]: string | [...string] 29 // trailer: [string]: string | [...string] 30 // } 31 // response: { 32 // status: string 33 // statusCode: int 34 // 35 // body: *bytes | string 36 // header: [string]: string | [...string] 37 // trailer: [string]: string | [...string] 38 // } 39 // } 40 // 41 // // TODO: support serving once we have the cue serve command. 42 // // Serve: { 43 // // port: int 44 // // 45 // // cert: string 46 // // key: string 47 // // 48 // // handle: [Pattern=string]: Message & { 49 // // pattern: Pattern 50 // // } 51 // // } 52 // 53 package http