Skip to content

rtc11/klib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

klib

A simple kotlin library for building a simple http server and client.

Strives to be simple and easy to use, with minimal dependencies..

Development

Build with nob.kt, no IDE required.

Build

  • ./nob # build src

Test

  • ./nob test # build test and run tests. Run ./nob test -h for help.

img

DocGen

Generate man-pages, example for these two files:

./nob doc src/doc/DocGen.kt src/doc/KotlinParser.kt

Will output man1/docgen.1 and man1/kotlinparser.1

e.g. man docgen

img

Project structure

.
├── nob             # nob bootstrap/cli
├── nob.kt          # nob src and config
├── .res            # resources
│   └── log.conf    # log configuration
├── test
│   └── ...
└── src
    ├── client
    ├── examples
    ├── json
    ├── parser
    ├── serde
    ├── server
    ├── test
    └── util

Roadmap

  • HTTP Client
  • HTTP Server
  • IDE independent builds
  • generate man pages for kdoc
    • summarize from file containing main()
    • list class, data class, data object, object
    • list functions
    • list global constants
    • generate one page per source-file
  • JDBC driver (postgres)
  • Logging support
    • Console log
    • JSON log
    • File log
  • Kafka?
  • OAuth2
  • Parser Combinator
  • Rust-like Result type
  • Serializer and Deserializer
    • JSON serde
    • XML serde
  • Test enginge
    • Output result to console (hide test print/log/errors in console)
    • Output result to file (test println/log/errors console)
  • neotest adapter

About

Minimalistic kotlin library for http server/clients

Resources

License

Stars

Watchers

Forks