id = "httpy" name = "httpy" description = "A programmable command-line HTTP client." executables = ["httpy"] [commands] format = 1 label = "Send HTTP request" description = "Send a request and choose which part of the response to print." quality = "ai-draft" base = "fig:httpy" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/httpy.ts" license = "MIT" [[commands.field]] id = "url" label = "URL" description = "The scheme defaults to http:// when omitted." type = "string" position = 0 sources = ["fig"] [[commands.field]] id = "method" label = "Method" type = "string" position = 1 suggestions = [{ value = "GET", label = "GET" }, { value = "POST", label = "POST" }, { value = "PUT", label = "PUT" }, { value = "DELETE", label = "DELETE" }] sources = ["fig"] [[commands.field]] id = "status" label = "Status only" type = "boolean" option = ["--status", "-S"] sources = ["fig"] [[commands.field]] id = "header" label = "Headers only" type = "boolean" option = ["--header", "-H"] sources = ["fig"] [[commands.field]] id = "body" label = "Body only" type = "boolean" option = ["--body", "-B"] sources = ["fig"] [[commands.field]] id = "allow_redirect" label = "Follow redirects" type = "boolean" option = ["--allow-redirect", "-r"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose", "-V"] sources = ["fig"] [[commands.task]] id = "get" label = "Send request" fields = ["url", "method", "allow_redirect", "verbose"] required = ["url"] [[commands.group]] id = "basic" label = "Basic" fields = ["url", "method", "allow_redirect"] [[commands.group]] id = "advanced" label = "Output" fields = ["status", "header", "body", "verbose"]