Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 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: { |
Marcel van Lohuizen | 44df1a8 | 2019-12-05 16:44:22 +0100 | [diff] [blame] | 13 | // $id: *"tool/http.Do" | "http" // http for backwards compatibility |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 14 | // |
| 15 | // method: string |
| 16 | // url: string // TODO: make url.URL type |
| 17 | // |
| 18 | // request: { |
| 19 | // body: *bytes | string |
Marcel van Lohuizen | 67d084a | 2019-12-05 15:34:42 +0100 | [diff] [blame] | 20 | // header: [string]: string | [...string] |
| 21 | // trailer: [string]: string | [...string] |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 22 | // } |
| 23 | // response: { |
| 24 | // status: string |
| 25 | // statusCode: int |
| 26 | // |
| 27 | // body: *bytes | string |
Marcel van Lohuizen | 67d084a | 2019-12-05 15:34:42 +0100 | [diff] [blame] | 28 | // header: [string]: string | [...string] |
| 29 | // trailer: [string]: string | [...string] |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 30 | // } |
| 31 | // } |
| 32 | // |
Marcel van Lohuizen | 67d084a | 2019-12-05 15:34:42 +0100 | [diff] [blame] | 33 | // // TODO: support serving once we have the cue serve command. |
| 34 | // // Serve: { |
| 35 | // // port: int |
| 36 | // // |
| 37 | // // cert: string |
| 38 | // // key: string |
| 39 | // // |
Marcel van Lohuizen | 44df1a8 | 2019-12-05 16:44:22 +0100 | [diff] [blame] | 40 | // // handle: [Pattern=string]: Message & { |
Marcel van Lohuizen | 67d084a | 2019-12-05 15:34:42 +0100 | [diff] [blame] | 41 | // // pattern: Pattern |
| 42 | // // } |
| 43 | // // } |
Marcel van Lohuizen | 6081b52 | 2019-06-22 15:43:52 +0200 | [diff] [blame] | 44 | // |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 45 | package http |