Giter Site home page Giter Site logo

werdl / servt Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 30 KB

a programmatic HTTP/1.1 server, with very few dependencies, written in Rust

Home Page: https://crates.io/crates/servt

License: MIT License

Rust 100.00%
async-rust http network-programming rust web-server http1-1

servt's Introduction

servt

a programmatic web server, with very few dependencies.

why

  • many big frameworks are too heavy for small projects, or don't suit yours (or my!) development style
  • so this is small, easy to use, but still powerful

features

async

  • enabled by default, adds smol as a dependency (adds around 35 deps)
  • executes all requests by spawning a new task
  • if not enabled, falls back to std::thread (which spawns a new thread for each request)

time

  • enabled by default, adds chrono as a dependency (adds around 2 deps, as the features enabled are very few, namely alloc and now)
  • adds a Date header to all responses
  • this is technically required by the HTTP/1.1 spec, but the majority of clients will work without it

servt's People

Contributors

werdl avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.