v1.0.4 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 10 Imported by: 0



package http contains http related actions



This section is empty.


This section is empty.


func ActionCacheControlRequestDirectives

func ActionCacheControlRequestDirectives() carapace.Action

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

func ActionContentEncodingTokens() carapace.Action

ActionContentEncodingTokens completes content encoding tokens

br (Brotli)
gzip (GNU zip format)

func ActionMediaTypes

func ActionMediaTypes() carapace.Action

ActionMediaTypes completes media types


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")
				return carapace.ActionValues()

func ActionRequestHeaderNames

func ActionRequestHeaderNames() carapace.Action

ActionRequestHeaderNames completes http request header names

Accept-Charset (Character sets that are acceptable.)
Accept-Datetime (Acceptable version in time.)

func ActionRequestHeaderValues

func ActionRequestHeaderValues(header string) carapace.Action

ActionRequestHeaderValues completes values for given request header


func ActionRequestHeaders

func ActionRequestHeaders() carapace.Action

ActionRequestHeaders completes http request headers


func ActionRequestMethods

func ActionRequestMethods() carapace.Action

ActionRequestMethods completes request methods

DELETE (The DELETE method deletes the specified resource.)
GET (The GET method requests a representation of the specified resource.)

func ActionStatusCodes

func ActionStatusCodes() carapace.Action

ActionStatusCodes completes http status codes

100 (Continue)
200 (OK)

func ActionTags

func ActionTags() carapace.Action

ActionTags completes html tags

a (Defines a hyperlink)
abbr (Defines an abbreviation or an acronym)

func ActionTransferEncodingTokens

func ActionTransferEncodingTokens() carapace.Action

ActionTransferEncodingTokens completes transfer encoding tokens

chunked (Transfer in a series of chunks)
gzip (GZIP file format)

func ActionUrls

func ActionUrls() carapace.Action

ActionUrls completes known hosts and ports as urls

func ActionUserAgents

func ActionUserAgents() carapace.Action

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)


type OpenApiPathOpts

type OpenApiPathOpts struct {
	Spec   string
	Method string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL