#http

115 bookmarks tagged with #http · RSS Feed · ← All Tags

Server-Sent Events Beat WebSockets for 95% of Real-Time Apps (Here's Why) - DEV Community

https://dev.to/polliog/server-sent-events-beat-websockets-for-95-of-real-time-apps-heres-why-a4l?context=digest
Everyone defaults to WebSockets for real-time features. Most shouldn't. The reality: 95% of "real-time" applications only need server → client updates. Chat notifications. Live dashboards. Stock tickers. Log streams. AI responses. WebSockets give you bidirectional communication. But bidirectional comes with a tax: complexity, resource overhead, scaling challenges, debugging nightmares. Server-Sent Events (SSE) do one thing: stream data from server to client. They do it brilliantly. And for most applications, that's all you need.

The smallest Docker image to serve static websites | Florin Lipan

https://lipanski.com/posts/smallest-docker-image-static-website
Until recently, I used to think that serving static websites from Docker would be a waste of bandwith and storage. Bundling nginx or various other heavy runtimes inside a Docker image for the sole purpose of serving static files didn’t seem like the best idea - Netlify or Github Pages can handle this much better. But my hobby server was sad and cried digital tears.

Speculation Rules API - Web APIs | MDN

https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API
The Speculation Rules API is designed to improve performance for future navigations. It targets document URLs rather than specific resource files, and so makes sense for multi-page applications (MPAs) rather than single-page applications (SPAs).

getFavicon

http://getfavicon.appspot.com/
Retrieves the relevant favicon for a URL, or returns a default icon should it not be able to find it. Works better than the Google version as it will find favicons specified by an HTML page's <link> element. Feel free to hotlink, although it would be nice if you could email me if you're going to make more than a couple of requests a second.

getFavicon

http://getfavicon.appspot.com
Retrieves the relevant favicon for a URL, or returns a default icon should it not be able to find it. Works better than the Google version as it will find favicons specified by an HTML page's element. Feel free to hotlink, although it would be nice if you could email me if you're going to make more than a couple of requests a second.

URI.js - URLs in Javascript

http://medialize.github.com/URI.js
URI.js is a javascript library for working with URLs. It offers a "jQuery-style" API (Fluent Interface, Method Chaining) to read and write all regular components and a number of convenience methods like .directory() and .authority().

django-webdav - Django webdav implementation. - Google Project Hosting

http://code.google.com/p/django-webdav/
WebDAV implemented as a Django application. The motivation for this project is to allow authentication of users against Django's contrib.auth system, while also exporting different directories per user. Many Django tools and app can be combined with this such as django-digest etc. to provide a powerful WebDAV server.

Haters gonna HATEOAS — Timeless

http://timelessrepo.com/haters-gonna-hateoas
Now, when I said ‘nobody’ does this, what I meant was ‘for APIs.’ This is exactly how the Web works. Think about it. You start off on the homepage. That’s the only URL you have to know. From there, a bunch of links point you towards each state that you can reach from there. People would consider it ludicrous if they had to remember a dozen URLs to navigate a website, so why do we expect the consumers of our APIs to do so as well?

Ksplice » Hijacking HTTP traffic on your home subnet using ARP and iptables - System administration and software blog

http://blog.ksplice.com/2010/09/hijacking-http-traffic-on-your-home-subnet-using-arp-and-iptables
"Let’s talk about how to hijack HTTP traffic on your home subnet using ARP and iptables. It’s an easy and fun way to harass your friends, family, or flatmates while exploring the networking protocols."

Pro Git - Smart HTTP Transport

http://progit.org/2010/03/04/smart-http.html
"I think HTTP based Git will be a huge part of the future of Git, so if you’re running your own Git server, you should really check it out. If you’re not, GitHub and I’m sure other hosts will soon be supporting it - upgrade your Git client to 1.7ish soon so you can take advantage of it when it happens."

Joe Dog Software - Siege Home

http://www.joedog.org/index/siege-home
"Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It lets its user hit a web server with a configurable number of simulated web browsers. Those browsers place the server "under siege." "

XMLHttpRequest - W3C Working Draft 20 August 2009

http://www.w3.org/TR/2009/WD-XMLHttpRequest-20090820#the-setrequestheader-method
This is very annoying for Palm webOS, where WebKit is basically the top-level OS and not a browser. Might be a problem for ChromeOS too? Apps can't set their own User-Agent headers: "For security reasons, these steps should be terminated if header is an ASCII case-insensitive match for one of the following headers: ... User-Agent"

Exploring OAuth-Protected APIs :: Drive-by Digressions

http://mojodna.net/2009/08/21/exploring-oauth-protected-apis.html
"From time to time I need to debug OAuth-protected APIs, checking response headers and examining XML and JSON payloads. curl generally rocks for this sort of thing, but when the APIs in question are protected with OAuth, things break down. Likewise for benchmarking (ab, httperf, etc.) and exploration–isn’t it nice to browse APIs that return XML in Firefox? This needn’t to be the case."

evserver - Google Code

http://code.google.com/p/evserver
"EvServer is a lightweight http server, created especially to host python WSGI applications. Additionally, it supports little known Asynchronous WSGI extension, which was suggested by Christopher Stawarz. Using this extension it's possible to create an output html response in many data chunks, without blocking the main server process while your application waits for external resources. "

RFC5005 - Feed Paging and Archiving

http://www.faqs.org/rfcs/rfc5005.html
"This specification formalizes two types of feeds that can span one or more feed documents; "paged" feeds and "archived" feeds. Additionally, it defines "complete" feeds to cover the case when a single feed document explicitly represents all of the feed's entries."

PUT vs POST in RESTful Web Service « vincenthome’s Tech Clips

http://vincenthomedev.wordpress.com/2008/12/18/put-vs-post-in-restful-web-service
"This explains when to use POST or PUT for creating new resources. The answer ultimately lies in who is responsible for determining the new resource’s URI. If the client is in charge, the client can use PUT to the new URI (like we did for user accounts) and the service can return a response code of 201 (“Created”). However, if the service is in charge of generating the new URI, the client should POST the new resource to a factory URI like we’ve done for bookmarks. Then, the service can return a response code of 201 (“Created”) along with the URI of the new resource in the response “Location” header."

Beware of the Dog | JoeDog / Siege

http://www.joedog.org/JoeDog/Siege
"Siege is an http regression testing and benchmarking utility. It was designed to let web developers measure the performance of their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It allows the user hit a web server with a configurable number of concurrent simulated users. Those users place the webserver "under siege." "

REST APIs must be hypertext-driven » Untangled

http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven
"What needs to be done to make the REST architectural style clear on the notion that hypertext is a constraint? In other words, if the engine of application state (and hence the API) is not being driven by hypertext, then it cannot be RESTful and cannot be a REST API. Period. Is there some broken manual somewhere that needs to be fixed?"

Django snippets: minimal nginx conf to split get/post requests

http://www.djangosnippets.org/snippets/1141
"After a point the sql server becomes the bottleneck in lots of web application, and to scale, master-slave replication with single master, multiple slave is recommended. This setup with nginx can be used to accomplish traffic distribution between master and slave based on request method. "

ongoing · Learning REST

http://www.tbray.org/ongoing/When/200x/2008/10/01/Learning-REST
"I was talking to a colleague who has to become savvy in a hurry about modern Web applications and he asked “How do I learn about REST?” Good question. I thought of a couple of suggestions, then asked Twitter and got some more. Here they are."

URI Templates

http://www.ietf.org/internet-drafts/draft-gregorio-uritemplate-00.txt
"URI Templates are strings that can be transformed into URIs after embedded variables are substituted. This document defines the structure and syntax of URI Templates."

Secure RSS | MySmartChannels

http://myst-technology.com/mysmartchannels/public/item/13011
RSS feeds over SSL behind HTTP auth is hype-worthy? Oh yeah, I forgot. Everyone likes to reinvent HTTP. Though maybe, just maybe, this particular implementation has some interesting things about it.