Test other http verbs: get, put, post, delete, options, trace, head.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
module.exports = function (context, callback) {
|
module.exports = function (context, callback) {
|
||||||
console.log("Test function");
|
console.log("Test function entered");
|
||||||
callback(200, "Hello, world!");
|
callback(200, "Hello, world!\n");
|
||||||
|
console.log("Test function exit");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,12 @@ echo "-- Specializing"
|
|||||||
curl -f -X POST http://localhost:8888/specialize
|
curl -f -X POST http://localhost:8888/specialize
|
||||||
|
|
||||||
echo "-- Running user function"
|
echo "-- Running user function"
|
||||||
curl -f http://localhost:8888 ; echo
|
curl -f -X GET http://localhost:8888
|
||||||
|
curl -f -X POST http://localhost:8888
|
||||||
|
curl -f -X PUT http://localhost:8888
|
||||||
|
curl -f -X DELETE http://localhost:8888
|
||||||
|
curl -f -X TRACE http://localhost:8888
|
||||||
|
curl -f -X OPTIONS http://localhost:8888
|
||||||
|
|
||||||
|
# -I causes curl to make a HEAD request.
|
||||||
|
curl -f -I http://localhost:8888
|
||||||
|
|||||||
Reference in New Issue
Block a user