Skip to main content

HTTP

What​

HTTP Request is a simple segment to return any json data from any HTTP call.

Sample Configuration​

− ▢ × unable to create text based on template _ ohmyposh.dev − ▢ × unable to create text based on template _ ohmyposh.dev

Options​

NameTypeDefaultDescription
urlstring``The HTTP URL you want to call, supports templates
methodstringGETThe HTTP method to use, GET or POST
http_timeoutint10000The timeout in milliseconds for the HTTP request

Template (info)​

default template
{{ .Body }}

Properties​

NameTypeDescription
.Body.propertystringReplace .property with the property you want to display