Skip to content

Daitarabochi/konnnyaku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konnnyaku

no-dependency HTTP client & server made by @Shinyaigeek.

packages

  • konnnyaku-common: utils for konnnyaku
  • konnnyaku-client: http client of konnnyaku
  • konnnyaku-cli: cli to use konnnyaku-client
  • konnnyaku-server: http server of konnnyaku

How to use

git clone git@github.com:Shinyaigeek/konnnyaku.git

konnnyaku-server

use konnnyaku_server::server::server::Server;

fn main() {
    let mut server = Server::build(3000);
    server.get(String::from("/ping"), |req, res| {
        res.write("pong!");
    });
    server.serve();
}

konnnyaku-client

use konnnyaku_client::Client;

fn main() {
    let args: Vec<String> = std::env::args().collect();
    //* url
    let input = &args[1];
    Client::get(input.to_string());
}

RoadMap 🚗

  • HTTP method other than GET
  • HTTP status message other than 200
  • HTTP 2
  • HTTP 3
  • TLS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%