Skip to content

SNS Sticks And Stone. An https server built on top of the linux socket API and the ssl API, built for learning and maybe I'll use it on the future. Support TCP over IPv4, latest TLS method availabe on OpenSSL, mutilthreading, GET and POST methods and a simple cli interface

License

leomonta/sns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple Http server from socket library

Here are some features

  • Head http method
  • Get http method
  • wait for clients to make a connection, give the client socket to a thread for its resolution
  • Gz compression for data sent
  • basic header options implemented
    • HTTP/1.1 -> 200 | 404
    • Content-Lenght -> variable
    • Content-Encoding -> gzip
    • Cache-Control -> max-age=604800
    • Content-Type -> appropriate MIME type
    • Date -> UTC
    • Connection -> Close
    • Vary -> Accept-Encoding
    • Server -> LeonardCustom/3.2 (Ubuntu64)
  • Mime type retrived from hash map
  • Query parameters parsing
  • Form data parsing
  • Abstraction of an http message

About

SNS Sticks And Stone. An https server built on top of the linux socket API and the ssl API, built for learning and maybe I'll use it on the future. Support TCP over IPv4, latest TLS method availabe on OpenSSL, mutilthreading, GET and POST methods and a simple cli interface

Topics

Resources

License

Stars

Watchers

Forks

Languages