github.com/solo-io/cue@v0.4.7/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  //     	request: {
    19  //     		body?: bytes | string
    20  //     		header: [string]:  string | [...string]
    21  //     		trailer: [string]: string | [...string]
    22  //     	}
    23  //     	response: {
    24  //     		status:     string
    25  //     		statusCode: int
    26  //
    27  //     		body: *bytes | string
    28  //     		header: [string]:  string | [...string]
    29  //     		trailer: [string]: string | [...string]
    30  //     	}
    31  //     }
    32  //
    33  //     //  TODO: support serving once we have the cue serve command.
    34  //     // Serve: {
    35  //     //  port: int
    36  //     //
    37  //     //  cert: string
    38  //     //  key:  string
    39  //     //
    40  //     //  handle: [Pattern=string]: Message & {
    41  //     //   pattern: Pattern
    42  //     //  }
    43  //     // }
    44  //
    45  package http