1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-31 01:53:36 +02:00
ferret/pkg/stdlib/io/net/http/put.go
2020-02-21 11:15:41 -05:00

18 lines
420 B
Go

package http
import (
"context"
h "net/http"
"github.com/MontFerret/ferret/pkg/runtime/core"
)
// PUT makes a PUT HTTP request.
// @params params (Object) - request parameters.
// * url (String) - Target url.
// * body (Binary) - POST data.
// * headers (Object) optional - HTTP headers.
func PUT(ctx context.Context, args ...core.Value) (core.Value, error) {
return execMethod(ctx, h.MethodPut, args)
}