All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
adridoesthings's Avatar

adridoesthings / Unlimited download

0 likes
0 forks
1 files
Last active 6 months ago
This is a http server that serves a infinitely big file filled with random content
1 const std = @import("std");
2 const eql = std.mem.eql;
3
4 pub const std_options = .{
5 .log_level = .info,
6 };
7
8 fn http_error(writer: std.net.Stream.Writer, status_code: u16) !void {
9 const status = switch (status_code) {
10 200 => "OK",
Newer Older

Powered by Opengist ⋅ Load: 12ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文