Switch HTTP Server
This commit is contained in:
11
lib/PsychicHttp/examples/old/websocket_chat/test/README
Normal file
11
lib/PsychicHttp/examples/old/websocket_chat/test/README
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
This directory is intended for PIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
||||
35
lib/PsychicHttp/examples/old/websocket_chat/test/tests.rest
Normal file
35
lib/PsychicHttp/examples/old/websocket_chat/test/tests.rest
Normal file
@@ -0,0 +1,35 @@
|
||||
# Name: REST Client
|
||||
# Id: humao.rest-client
|
||||
# Description: REST Client for Visual Studio Code
|
||||
# Version: 0.21.3
|
||||
# Publisher: Huachao Mao
|
||||
# VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=humao.rest-client
|
||||
|
||||
@baseUrl = http://172.16.0.87
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/ HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/get?message=Hello+World HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
POST {{baseUrl}}/post HTTP/1.1
|
||||
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
|
||||
|
||||
message=Hello+World
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/someRandomFile HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/basic HTTP/1.1
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/stream HTTP/1.1
|
||||
Reference in New Issue
Block a user