blob: 01c33b367febe0fb44621291bd2935eda6da165f [file] [log] [blame]
Marcel van Lohuizen42ebafe2019-04-27 01:24:54 +02001// 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 Lohuizen44df1a82019-12-05 16:44:22 +010013// $id: *"tool/http.Do" | "http" // http for backwards compatibility
Marcel van Lohuizen42ebafe2019-04-27 01:24:54 +020014//
15// method: string
16// url: string // TODO: make url.URL type
17//
18// request: {
19// body: *bytes | string
Marcel van Lohuizen67d084a2019-12-05 15:34:42 +010020// header: [string]: string | [...string]
21// trailer: [string]: string | [...string]
Marcel van Lohuizen42ebafe2019-04-27 01:24:54 +020022// }
23// response: {
24// status: string
25// statusCode: int
26//
27// body: *bytes | string
Marcel van Lohuizen67d084a2019-12-05 15:34:42 +010028// header: [string]: string | [...string]
29// trailer: [string]: string | [...string]
Marcel van Lohuizen42ebafe2019-04-27 01:24:54 +020030// }
31// }
32//
Marcel van Lohuizen67d084a2019-12-05 15:34:42 +010033// // 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 Lohuizen44df1a82019-12-05 16:44:22 +010040// // handle: [Pattern=string]: Message & {
Marcel van Lohuizen67d084a2019-12-05 15:34:42 +010041// // pattern: Pattern
42// // }
43// // }
Marcel van Lohuizen6081b522019-06-22 15:43:52 +020044//
Marcel van Lohuizen42ebafe2019-04-27 01:24:54 +020045package http