RSSAmplifier

openmymind.net · Jan 10, 2025

Comptime as Configuration

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

If you look at my httpz library, you'll notice that httpz.Server(T) is a generic. The type passed to Server serves two purposes. The first is to support an application-specific context - whatever instance of T passed into Server(T).init gets passed back to your custom HTTP handlers. But the other purpose of T is to act as a configuration object. For example, if you want to circumvent most of…

Read on openmymind.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.