Documentation ¶
Overview ¶
package http contains http related actions
Index ¶
- func ActionCacheControlRequestDirectives() carapace.Action
- func ActionContentEncodingTokens() carapace.Action
- func ActionMediaTypes() carapace.Action
- func ActionOpenApiPaths(opts OpenApiPathOpts) carapace.Action
- func ActionRequestHeaderNames() carapace.Action
- func ActionRequestHeaderValues(header string) carapace.Action
- func ActionRequestHeaders() carapace.Action
- func ActionRequestMethods() carapace.Action
- func ActionStatusCodes() carapace.Action
- func ActionTags() carapace.Action
- func ActionTransferEncodingTokens() carapace.Action
- func ActionUrls() carapace.Action
- func ActionUserAgents() carapace.Action
- type OpenApiPathOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionCacheControlRequestDirectives ¶
ActionCacheControlRequestDirectives completes Cache-Control directives for a request
no-store (The response may not be stored in any cache.) no-transform (An intermediate cache or proxy cannot edit the response body.)
func ActionContentEncodingTokens ¶
ActionContentEncodingTokens completes content encoding tokens
br (Brotli) gzip (GNU zip format)
func ActionOpenApiPaths ¶
func ActionOpenApiPaths(opts OpenApiPathOpts) carapace.Action
ActionOpenApiPaths completes api paths
http.ActionOpenApiPaths(http.OpenApiPathOpts{Spec: "petstore.json"}). MultiPartsP("/", "{.*}", func(placeholder string, matches map[string]string) carapace.Action { switch placeholder { case "{petId}": return carapace.ActionValues("pet1", "pet2", "pet3") case "{orderId}": return carapace.ActionValues("order1", "order2", "order3") case "{username}": return carapace.ActionValues("user1", "user2", "user3") default: return carapace.ActionValues() } })
func ActionRequestHeaderNames ¶
ActionRequestHeaderNames completes http request header names
Accept-Charset (Character sets that are acceptable.) Accept-Datetime (Acceptable version in time.)
func ActionRequestHeaderValues ¶
ActionRequestHeaderValues completes values for given request header
ActionRequestHeaderValues("Accept") ActionRequestHeaderValues("Accept-Encoding")
func ActionRequestHeaders ¶
ActionRequestHeaders completes http request headers
Accept:application/json Accept-Encoding:exi,br
func ActionRequestMethods ¶
ActionRequestMethods completes request methods
DELETE (The DELETE method deletes the specified resource.) GET (The GET method requests a representation of the specified resource.)
func ActionTags ¶
ActionTags completes html tags
a (Defines a hyperlink) abbr (Defines an abbreviation or an acronym)
func ActionTransferEncodingTokens ¶
ActionTransferEncodingTokens completes transfer encoding tokens
chunked (Transfer in a series of chunks) gzip (GZIP file format)
func ActionUrls ¶
ActionUrls completes known hosts and ports as urls
aur.archlinux.org https://github.com:80
func ActionUserAgents ¶
ActionUserAgents completes common user agents
curl/7.35.0 (Curl) Lynx/2.8.8pre.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.12.23 (Lynx)
Types ¶
type OpenApiPathOpts ¶
Click to show internal directories.
Click to hide internal directories.