๐พ Archived View for source.community โบ ckaznocha โบ gemini โบ blob โบ main โบ handler.go captured on 2023-01-29 at 03:19:44. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2022-01-08)
โก๏ธ Next capture (2024-02-05)
-=-=-=-=-=-=-
. ,-. ,-. . . ,-. ,-. ,-. ,-. ,-. ,-,-. ,-,-. . . ,-. . |- . . `-. | | | | | | |-' | | | | | | | | | | | | | | | | | `-' `-' `-^ ' `-' `-' :: `-' `-' ' ' ' ' ' ' `-^ ' ' ' `' `-| /| `-'
git clone https://source.community/ckaznocha/gemini.git
View raw contents of /handler.go (main)
โโโโโฎ 1โ package gemini 2โ 3โ import ( 4โ "context" 5โ ) 6โ 7โ // Handler is an interface that handles Gemini incoming requests. 8โ type Handler interface { 9โ ServeGemini(context.Context, ResponseWriter, *Request) 10โ } 11โ 12โ // HandlerFunc is an adapter which allows a function to be used as a Handler. 13โ type HandlerFunc func(context.Context, ResponseWriter, *Request) 14โ 15โ // ServeGemini implements the Hander interface for a HandlerFunc. 16โ func (f HandlerFunc) ServeGemini(ctx context.Context, w ResponseWriter, r *Request) { 17โ f(ctx, w, r) 18โ } โโโโโฏ
ยท ยท ยท
ยฉ 2023 source.community