httpageboy-1.0.2 has been yanked.
HTTPageboy
A basic package for handling HTTP request and response transmission on the server side, without additional processing.
Requests can be any HTTP request.Routes are formed by the path, the HTTP request type, and the function to handle the request. The function must return aResponseinstance.Responses type are identified by the content type and are returned as bytes to browsers.
Example
Creating a simple server:
use ;
// Demo route handler (this is valid empty answer)
// Another demo route handler (also empty)
Dependencies
There are no external dependencies for production. :) There are two deps for testing only.
License
Copyright (c) 2024 fahedsl This project is licensed under the MIT License. For more details, refer to the MIT License.