Skip to content

Node.js-based HTTP server designed to handle various operations based on incoming requests.

Notifications You must be signed in to change notification settings

vinayChiliveri99/vinay-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vinay-http-server

This project is a simple Node.js HTTP server that serves specific operations based on the requested endpoints. The server responds to various HTTP GET requests with different content types, including HTML, JSON, UUID, specific status codes, and delayed responses.

Instructions

  1. Clone this repository:

    git clone https://github.com/vinayChiliveri99/vinay-http-server
    
    
  2. Navigate to the project directory:

    cd vinay-http-server
    
    
  3. Install the required dependencies:

    npm install
    
    
  4. Run the server:

    node index.js
    
    
  5. Access the server endpoints:

Endpoints

  • /html: Returns an HTML page.
  • /json: Returns a JSON string.
  • /uuid: Returns a UUID (UUID4).
  • /status/{status_code}: Returns a response with the specified status code.
  • /delay/{delay_in_seconds}: Returns a success response after the specified delay.

About

Node.js-based HTTP server designed to handle various operations based on incoming requests.

Topics

Resources

Stars

Watchers

Forks