bashd
1.0.0

โคลนโครงการ
git clone https://github.com/AlexGustafsson/bashd
นำทางไปยังโฟลเดอร์
cd bashd
เริ่มต้นเซิร์ฟเวอร์
./bashd
เร็ว
คุณสมบัติ
การใช้งาน
การบริจาค
คำถามที่พบบ่อย
กำหนดเส้นทาง
route get / homePage
# Special 404 route - handles all 404s
route get 404 notFoundPage
# POST a message to the echo page to hear it back louder!
route post /echo echoPageหน้าเว็บ
function homePage {
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
EOF
}
function notFoundPage {
setResponseCode " 404 "
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1>Cannot find $HTTP_METHOD $HTTP_PATH </h1>
</body>
</html>
EOF
}
function echoPage {
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1> ${HTTP_BODY_MESSAGE^^} </h1>
</body>
</html>
EOF
}ถาม : มันใช้งานได้หรือไม่? ก . ใช่.
ถาม : ปลอดภัยหรือไม่? ตอบ : ไม่
ถาม : มันเป็นเรื่องตลกหรือไม่? ตอบ : ส่วนใหญ่
ความช่วยเหลือใด ๆ เกี่ยวกับโครงการนั้นเป็นมากกว่าการต้อนรับ เมื่อมีข้อสงสัยให้โพสต์ปัญหา