Tag http

8 bookmarks have this tag.

2024-03-01

1166.

Serving my blog posts as Linux manual pages | James' Coffee Blog

jamesg.blog/2024/02/29/linux-manual-pages

TL;DR: You can request a Linux manual page version of a blog post with the following HTTP request:

curl -sL -H "Accept: text/roff" https://jamesg.blog/2024/02/28/programming-projects/ > post.page && man ./post.page

2024-02-04

1104.

Better HTTP server routing in Go 1.22 - Eli Bendersky's website

eli.thegreenplace.net/2023/better-http-server-routing-in-go-122

The fish told me of this cool new feature. In short,

func main() {
  mux := http.NewServeMux()
  mux.HandleFunc("GET /path/", func(w http.ResponseWriter, r *http.Request) {
    fmt.Fprint(w, "got path\n")
  })

  mux.HandleFunc("/task/{id}/", func(w http.ResponseWriter, r *http.Request) {
    id := r.PathValue("id")
    fmt.Fprintf(w, "handling task with id=%v\n", id)
  })

  http.ListenAndServe("localhost:8090", mux)
}

Handy!

2024-02-02

1091.

HTTPRange-14 - Wikipedia

en.m.wikipedia.org/wiki/HTTPRange-14

A weird problem

2024-01-16

1055.

RapidAPI for Mac – The most advanced API tool for Mac

paw.cloud

RapidAPI for Mac is a full-featured HTTP client that lets you test and describe the APIs you build or consume. It has a beautiful native macOS interface to compose requests, inspect server responses, generate client code and export API definitions.

Grishka recommended me this for HTTP probing. It helped me!

2023-07-25

508.

humungus - miniwebproxy

humungus.tedunangst.com/r/miniwebproxy

Parses HTML responses and rewrites a simplified light weight version.

Rewrite rules are written in lua using standard CSS selectors.

2023-06-11

322.

volution/kawipiko

github.com/volution/kawipiko

kawipiko -- blazingly fast static HTTP server -- focused on low latency and high concurrency, by leveraging Go, fasthttp and the CDB embedded database

2023-05-31

266.

Chris's Wiki :: blog/web/VeryOldIfModifiedSince

utcc.utoronto.ca/~cks/space/blog/web/VeryOldIfModifiedSince

This feed fetcher was sending an If-Modified-Since HTTP header, but it had a rather striking value of 'Wed, 01 Jan 1800 00:00:00 GMT'. Naturally this doesn't match any Last-Modified value my feed has ever provided, and it wouldn't help if I used a time based comparison since all syndication feeds in the world have been changed since 1800.

265.

Feeds, updates, 200s, 304s, and now 429s

rachelbythebay.com/w/2023/01/18/http

Some people pull feeds way too often. Sometimes they do not get what they want.