mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-29 01:44:23 +02:00
67dc8703c7
* Added HTTP methods * Added unit tests * Fixed linting issue * Replaced localhost with 127.0.0.1 * Added random port generator * Disabled http tests * Disabled HTTP GET test
15 lines
329 B
Go
15 lines
329 B
Go
package http
|
|
|
|
import (
|
|
"context"
|
|
h "net/http"
|
|
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
)
|
|
|
|
// POST makes a POST request to the specified URL.
|
|
// @params url or (String) - path to file to write into.
|
|
func POST(ctx context.Context, args ...core.Value) (core.Value, error) {
|
|
return execMethod(ctx, h.MethodPost, args)
|
|
}
|