From 8f212254454dc67fbbc7182732187e9a9801b1a9 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 4 Jun 2021 21:54:48 +0200 Subject: Revert "Add HTTP class" This reverts commit 84e2b2be6f7537e0a4a9f0c323555404d2682a8a. --- PHP/HTTP-Class/index.php | 71 ------------------------------------------------ 1 file changed, 71 deletions(-) delete mode 100755 PHP/HTTP-Class/index.php (limited to 'PHP/HTTP-Class/index.php') diff --git a/PHP/HTTP-Class/index.php b/PHP/HTTP-Class/index.php deleted file mode 100755 index cc52561..0000000 --- a/PHP/HTTP-Class/index.php +++ /dev/null @@ -1,71 +0,0 @@ - 'value_three'])) { - // do something -} - -#============================================================================== -# Check the HTTP request method -#============================================================================== -if(HTTP::requestMethod('GET') OR HTTP::requestMethod('POST') OR HTTP::requestMethod('HEAD')) { - // do something -} - -#============================================================================== -# Get the HTTP request method -#============================================================================== -$requestMethod = HTTP::requestMethod(); - -#============================================================================== -# Get the HTTP status code of the current request -#============================================================================== -$statusCode = HTTP::responseStatus(); - -#============================================================================== -# Send a HTTP status code to the client -#============================================================================== -HTTP::responseStatus(200); - -#============================================================================== -# Send a custom HTTP response header to the client -#============================================================================== -HTTP::responseHeader(HTTP::HEADER_CONTENT_TYPE, HTTP::CONTENT_TYPE_TEXT); - -#============================================================================== -# Send a HTTP redirect to the client and stop script execution -#============================================================================== -# HTTP::redirect('https://example.org/'); -# HTTP::redirect('https://example.org/', 303); -?> \ No newline at end of file -- cgit v1.2.3