/twebserver

TCL Web Server (HTTP & HTTPS) Extension

Primary LanguageCMIT LicenseMIT

twebserver

TCL Web Server Extension

Features

  • High performance web server (HTTP & HTTPS) written in C and Tcl.
  • It uses a highly efficient event-driven model with fixed number of threads to manage connections.
  • It can be easily extended.
  • It is a TCL loadable module.
  • It supports multiple certificates for different hosts (SNI).
  • Keepalive connections
  • Compression (gzip)
  • Routing & Middleware functionality
  • Client Certificate Verification

Modules and Extensions

  • thtml - HTML Templating Engine for TCL
  • tjson - parse and serialize json in TCL
  • valkey-tcl - interface to the Valkey (redis) store.
  • tink-tcl - cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
  • aws-sdk-tcl - use AWS services with TCL (S3, DynamoDB, Lambda, SQS and some IAM and SSM support)
  • ksuid-tcl - K-Sortable Unique Identifiers (KSUIDs) in TCL
  • snappy-tcl - TCL bindings for a fast compressor / decompressor library by google
  • bcrypt-tcl - TCL module for bcrypt, a password-hashing function.
  • tmfa - Multi-Factor Authentication (MFA) using TOTP and HOTP
  • tqrcodegen - generate QR codes as SVG images
  • tdom - XML parser and more

Middleware

  • tsession - Simple Session Management
  • tratelimit - Rate Limiting Middleware
  • treqmon - Request Monitoring and Logger Middleware

Getting Started

Examples