GETdan boshqa usullarni boshqarish uchun, siz handle_request funksiyasini POST, PUT, DELETE kabi boshqa HTTP usullari uchun shartli buyruqlarni o'z ichiga olgan holda o'zgartirishingiz mumkin. Bu skriptning yangilangan versiyasi: #!/bin/sh # Tinglash portini PORT=8080 # HTTP javob sarlavhasini aniqlang HTTP_OK="HTTP/1.1 200 OK" HTTP_METHOD_NOT_ALLOWED="HTTP/1.1 405 Not Method Allowed" CONTENT_TYPE_HTML="Content-Type: text/html" CONNECTION_CLOSE="Connection:" # HTML javobni aniqlang HELP_LOWORLD_RESPOND="DOT_SE<!CTYPE html> <head> <head> <head>
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence