Tag http
11 bookmarks have this tag.
11 bookmarks have this tag.
Reproxy is a simple edge HTTP(s) server / reverse proxy supporting various providers (docker, static, file, consul catalog).
BSD, C, httpd, SQLite: an open software stack for web applications
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
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!
A weird problem
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!
Parses HTML responses and rewrites a simplified light weight version.
Rewrite rules are written in lua using standard CSS selectors.
kawipiko -- blazingly fast static HTTP server -- focused on low latency and high concurrency, by leveraging Go,
fasthttp
and the CDB embedded database
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.
Some people pull feeds way too often. Sometimes they do not get what they want.