Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec sends the passed request object.
@callable: http.Exec @param: r @Request @retval: response @string @retval: err @Error
@usage: resp, err = http.Exec(r)
func SetBody ¶
SetBody sets the http body to the value passed on the request object.
@callable: http.SetBody @param: r @Request @param: value @string
@usage: http.SetBody(r, "{key: value}")
Types ¶
type Request ¶
Request provides a concurrency-safe wrapper for an HTTPRequest that implements a starlark.Value.
func NewRequest ¶
NewRequest creates a new Request object to be passed around.
@callable: http.NewRequest @param: url @String @retval: request @Request
@usage: r = http.NewRequest(CDN_URL+"/l/nomnom")
func ParseParam ¶
ParseParam from starlark input
func (Request) Freeze ¶
func (r Request) Freeze()
Freeze is a no-op since the underlying Request is safe for concurrent use.