Skip to content

This Go HTTP server project provides a lightweight and customizable solution for handling HTTP requests and serving responses. Built using the standard Go library, it offers a simple yet powerful way to create an HTTP server with support for multiple routes and customizable responses.

Notifications You must be signed in to change notification settings

shreverr/http-server-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go HTTP Server

This Go HTTP server project provides a lightweight and customizable solution for handling HTTP requests and serving responses. Built using the standard Go library, it offers a simple yet powerful way to create an HTTP server with support for multiple routes and customizable responses.

This is a simple HTTP server implemented in Go.

Features

  • Handles HTTP requests and returns responses.
  • Supports multiple routes with customizable responses.
  • Easy to configure and extend.

Installation

To use this HTTP server, you need to have Go installed on your machine.

  1. Clone the repository:

    git clone https://github.com/shreverr/http-server-go.git
    cd http-server-go
  2. Run the application

    go run main.go
    

Usage

Once the server is running, you can access it at http://localhost:4221.

Routes

  • /: Returns a "Hello, World!" message.
  • /echo/{message}: Echoes back the provided message.

About

This Go HTTP server project provides a lightweight and customizable solution for handling HTTP requests and serving responses. Built using the standard Go library, it offers a simple yet powerful way to create an HTTP server with support for multiple routes and customizable responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages