github.com/kubevela/workflow@v0.6.0/pkg/stdlib/actions/v1/pkgs/http.cue (about)

     1  #Do: {
     2  	#do:       "do"
     3  	#provider: "http"
     4  
     5  	// +usage=The method of HTTP request
     6  	method: *"GET" | "POST" | "PUT" | "DELETE"
     7  	// +usage=The url to request
     8  	url: string
     9  	// +usage=The request config
    10  	request?: {
    11  		// +usage=The timeout of this request
    12  		timeout?: string
    13  		// +usage=The request body
    14  		body?: string
    15  		// +usage=The header of the request
    16  		header?: [string]: string
    17  		// +usage=The trailer of the request
    18  		trailer?: [string]: string
    19  		// +usage=The rate limiter of the request
    20  		ratelimiter?: {
    21  			limit:  int
    22  			period: string
    23  		}
    24  		...
    25  	}
    26  	// +usgae=The tls config of the request
    27  	tls_config?: secret: string
    28  	// +usage=The response of the request will be filled in this field after the action is executed
    29  	response: {
    30  		// +usage=The body of the response
    31  		body: string
    32  		// +usage=The header of the response
    33  		header?: [string]: [...string]
    34  		// +usage=The trailer of the response
    35  		trailer?: [string]: [...string]
    36  		// +usage=The status code of the response
    37  		statusCode: int
    38  		...
    39  	}
    40  	...
    41  }