Documentation ¶
Index ¶
- Constants
- Variables
- func Color(str string, color uint8) string
- func ColorStart(color uint8) string
- func ColorfulHTML(str string) string
- func ColorfulHeader(str string) string
- func ColorfulResponse(str string, isJSON bool, pretty bool) string
- func IsBlowEnv() bool
- func KeyUsageString(k x509.KeyUsage) []string
- func NewConditionalLock(condition bool) sync.Locker
- func ProxyHTTPDialerTimeout(timeout time.Duration, dialer Dialer, tls bool) fasthttp.DialFunc
- func StartBlow()
- func TryStartAsBlow() bool
- type Bench
- type ConditionLock
- type Dialer
- type Durations
- type HttpieArg
- func (a *HttpieArg) AddQuery(k, v string)
- func (a *HttpieArg) Build(method string, form bool) *HttpieArgBody
- func (a *HttpieArg) MaybePost() bool
- func (a *HttpieArg) SetHeader(k, v string)
- func (a *HttpieArg) SetJsonMap(k string, v interface{})
- func (a *HttpieArg) SetParam(k, v string)
- func (a *HttpieArg) SetPostFile(formname, filename string)
- type HttpieArgBody
- type Invoker
- type LogEntry
- type Opt
- type Pair
Constants ¶
View Source
const ( Gray = uint8(iota + 90) Green Magenta Cyan EndColor = "\033[0m" )
Variables ¶
View Source
var Debug = ss.Must(ss.GetenvBool("DEBUG", false))
Functions ¶
func ColorStart ¶
func ColorfulHTML ¶
func ColorfulHeader ¶
func KeyUsageString ¶
KeyUsageString convert x509.KeyUsage to string.
func NewConditionalLock ¶
func ProxyHTTPDialerTimeout ¶
ProxyHTTPDialerTimeout returns a fasthttp.DialFunc that dials using code original from fasthttpproxy.ProxyHTTPDialerTimeout the env(HTTP_PROXY, HTTPS_PROXY and NO_PROXY) configured HTTP proxy using the given timeout.
Example usage:
c := &fasthttp.Client{ Dial: ProxyHTTPDialerTimeout(time.Second * 2), }
func TryStartAsBlow ¶
func TryStartAsBlow() bool
Types ¶
type Bench ¶
type Bench struct {
// contains filtered or unexported fields
}
type ConditionLock ¶
type ConditionLock struct {
// contains filtered or unexported fields
}
func (*ConditionLock) Lock ¶
func (c *ConditionLock) Lock()
func (*ConditionLock) Unlock ¶
func (c *ConditionLock) Unlock()
type HttpieArg ¶
type HttpieArg struct {
// contains filtered or unexported fields
}
func (*HttpieArg) SetJsonMap ¶
func (*HttpieArg) SetPostFile ¶
type HttpieArgBody ¶
type HttpieArgBody struct { Body io.ReadCloser ContentType string BodyString string Multipart bool }
type Opt ¶
type Opt struct {
// contains filtered or unexported fields
}
func (*Opt) HasPrintOption ¶
Click to show internal directories.
Click to hide internal directories.