Philsturgeon, to random
@Philsturgeon@mastodon.green avatar

If you work with APIs and haven’t dug into OpenAPI yet, here’s a full blown introduction to get you started from absolutely zero context. Written by me, for the excellent folks at @httptoolkit.

https://httptoolkit.com/blog/introduction-to-openapi/

#APIDesign #API #HTTP #APIDevelopment #OpenAPI

fell, to linux
@fell@ma.fellr.net avatar

My dream child of FTP, NFS and Samba that doesn't exist:

  • Encrypted by default, but can be unencrypted
  • Automatically adapts to network latency
  • Highly optimized for reading, writing and enumerating files.
  • Random access is as fast as sequential access (within hardware limitations, of course)
  • Optional built-in HTTP server with directory listing
  • Authentication can be anything, including password, token, public key, IP address or no authentication
  • Supports resuming interrupted transfers, even after days
  • Supports simultaneous up- and downloading of the same file (streaming)
  • UTF-8 only
  • The server can calculate hashes on request, allowing for differential file transfers
  • Can be mounted as a filesystem (And automatically handles dropped connections)

#Linux #Server #SysAdmin #DevOps #IT #FTP #Samba #NFS #HTTP

kwantumkraut, to Cyberdeck
@kwantumkraut@corteximplant.com avatar

So all you #nerds, #nerdettes, #geeks, #cyberpunks, #chooms and adjacent peeps: how do you cyber up your life?

Do you have a #cyberdeck for daily use?
Any cool gadgets or #techwear?
Souped up terminal prompt beyond oh-my-zsh?
Any other useful desktop apps which help you trough the day?
All the RGB you can fit into your room?
Preaching the gospel of #Arch Linux?

I kinda feel pretty un-cyber these days and was wondering…

#CyberEveryday #CybUpYourLife

cazabon,

@kwantumkraut

When you visit my without the trailing dot, it sees the domain name in the and redirects the request to the , correct - with the dot.

Unfortunately, there are a few user agents that don't handle the trailing dot correctly. The worst offenders didn't handle the trailing dot at all, but I think most of those have been fixed by now, with the possible exception of #curl.

2/x

seancribbs, to random
hywan, to rust
@hywan@fosstodon.org avatar
schizanon, to webdev

> Not being content with alienating only the general purpose enthusiasts, let me now proceed to also alienate my erstwhile enthusiast allies by saying:

> I don’t think is typically the right approach to returning both JSON and for most applications.

https://htmx.org/essays/why-tend-not-to-use-content-negotiation/

jimmyb, to selfhosted
@jimmyb@selfhosted.cafe avatar

I think I finally got my #selfhosted copy of Hoppscotch up and running! No more relying on #Postman!

https://github.com/hoppscotch/hoppscotch

#Docker #Ubuntu #API #selfhosting #Linux #HTTP

kubikpixel, to webdev
@kubikpixel@chaos.social avatar

Which web server is the fastest and most suitable for you if it has to distribute the network requests to different services located in virtual operating systems. It should also be relatively easy to configure 🤔 :BoostOK:

SirTapTap, to internet
@SirTapTap@mastodon.social avatar

Reminder that #internet http response codes are very high quality (note the specific number used for Unavailable for legal reasons as well)

#imateapot #http #web #webdev

hans, to random

Funny list, aint it? Well, it is kind of worrying. The federation, we knew that, is not looking at status messages at al. This means some 40 percent of the requests made are not honored and are answered with different status messages. In bytes it might not be much but let's assume some 10 million instances are generating some 40 percent faults.... There have been days I would have been given the task to solve it.

Code 200 - OK 49.98% 62231<br></br>Code 202 - Accepted 0.07% 87<br></br>Code 204 - No Content 0.03% 43<br></br>Code 302 - Found 1.87% 2325<br></br>Code 304 - Not Modified 2.37% 2956<br></br>Code 400 - Bad Request 22.14% 27567<br></br>Code 401 - Unauthorized 0.42% 523<br></br>Code 403 - Forbidden 10.44% 12997<br></br>Code 404 - Not Found 8.82% 10985<br></br>Code 408 - Request Timeout 0.02% 21<br></br>Code 409 - Conflict 0.01% 7
mro,
@mro@digitalcourage.social avatar

@hans #activitypub despises the #semantics of #http.

cooptilleuls, to random French
@cooptilleuls@mastodon.online avatar

[En direct] Un membre de notre équipe assiste au groupe de travail #HTTP de l'IETF qui se déroule en ce moment à la conférence IETF 118 (Prague)

dusnm, to golang
@dusnm@fosstodon.org avatar
hywan, to random
@hywan@fosstodon.org avatar

Compression Dictionary Transport, http://useasdictionary.com/.

> Compression dictionaries are bits of compressible content known ahead of time. They are being used by compression engines to reduce the size of compressed content.

It’s pretty efficient. A proposal is being designed to support compression dictionary with HTTP. It can be pretty impactful on the Web in terms of network bandwidth and speed.

davidism, to chrome
@davidism@mas.to avatar

What's going on with Partitioned cookies (chips) in Chrome? Apparently there's a spec, https://datatracker.ietf.org/doc/html/draft-cutler-httpbis-partitioned-cookies#section-2.1, but it's described as "expired draft". And yet Chrome released it and no one else supports it. I don't particularly want to support it yet in Werkzeug/Flask if it's not actually an accepted standard. #Chrome #HTTP #Flask

jnv, to til
@jnv@mastodon.social avatar

There's a draft of RFC for transclusion via HTTP Prefer header: https://inadarei.github.io/draft-prefer-transclude/

hrefna, to fediverse
@hrefna@hachyderm.io avatar

If I read between the lines on the software design for #ActivityPub, I don't think there are actually supposed to be servers per se, or more precisely that servers are supposed to be very simple passthroughs that have some forwarding/processing logic?

If so then this makes some sense, since when AP was being written was a big time for BaaS (Backend as a Service; https://en.wikipedia.org/wiki/Backend_as_a_service ) and that influenced a lot of ideas.

blaise,
@blaise@hachyderm.io avatar

@hrefna
Having seen this movie several times before, IMHO, it's a case of adopting a spec because it can be interoperable and then having it spin out of control when adoption explodes.
I've seen it happen with
#smtp #http #html #json #javascript
and because the solution started with a limited scope, it was hard to refactor without breaking things.

Colin, to programming

It appears that all popular #NodeJS #HTTP client libraries are either deprecated, outdated, or are missing features. As any other sane person would do, I decided to write my own.

No, really. But I'm building on top of https://docs.rs/reqwest/latest/reqwest/ and I'm "just" making this native #Rustlang library accessible to NodeJS.

reiver, to SmallWeb
@reiver@mastodon.social avatar

1/

One reason that HTTP(S) came to dominate application development is —

A lot of firewalls block all Internet traffic that isn't HTTP(S) — i.e., that isn't sent over TCP port 80 or 443.

That presents a problem for small-net protocols.

Will they in practice "work" for most people — will they be accessible by most people — given so many firewalls block non-HTTP(S) traffic‽

Should small-net protocol developers even care‽

#HTTP #HTTPS #HTTPUpgrade #smallNet #smallWeb #smolNet #smolWeb

reiver,
@reiver@mastodon.social avatar

2/

For small-net protocol developers who do care about the Firewall problem —

One way this problem could be addressed is —

By shoe-horning new small-net protocols into HTTP(S) using an HTTP-upgrade.

This would only require a new small-net protocol to add a prefix to the connection or request —

#HTTP #HTTPS #HTTPUpgrade #smallNet #smallWeb #smolNet #smolWeb

reiver,
@reiver@mastodon.social avatar

3/

(Using some #golang code) something like this —

const protocolName string = "myprotocol/1"

var hostName string = "www.example.com"

prefix :=
"UPGRADE /.well-known/upgrade/"+ protocolName +" HTTP/1.1" + "\r\n"+
"Connection: upgrade" + "\r\n"+
"Upgrade: "+protocolName + "\r\n"+
"Host: "+ hostName + "\r\n"+
"\r\n"

Where you replace 'protocolName' with your actual protoco-name.

And replace 'hostName' with the server host-name

#HTTP #HTTPS #HTTPUpgrade #smallNet #smallWeb #smolNet #smolWeb

reiver,
@reiver@mastodon.social avatar

4/

So a theoretical http+gemini or https+gemini protocol would have prefix like —

const protocolName string = "gemini/1"

var hostName string = "example.com"

prefix :=
"UPGRADE /.well-known/upgrade/"+ protocolName +" HTTP/1.1" + "\r\n"+
"Connection: upgrade" + "\r\n"+
"Upgrade: "+protocolName + "\r\n"+
"Host: "+ hostName + "\r\n"+
"\r\n"

And after this prefix would come the normal gemini-protocol request

#gemini #geminiProtocol #HTTP #HTTPS #HTTPUpgrade #smallNet #smallWeb #smolNet #smolWeb

reiver,
@reiver@mastodon.social avatar

5/

If you are not familiar with HTTP-upgrades —

An HTTP-upgrade is a way of turning an HTTP connection into a generic TCP connection

You could use the common request-response pattern (that HTTP, gemini, and so many other protocols use)

But you don't have to. It becomes a generic TCP connection — and you can do any type of communication behavior you or your protocol chooses

Which is great for new small-net protocols

#HTTP #HTTPS #HTTPUpgrade #smallNet #smallWeb #smolNet #smolWeb

shaft, to random
@shaft@piaille.fr avatar

Internet-over-HTTP. Literally this time

#RFC 9484: Proxying #IP in #HTTP
https://www.rfc-editor.org/rfc/rfc9484.html

slink, to random
@slink@fosstodon.org avatar
inautilo, to webdev
@inautilo@mastodon.social avatar


The challenges ahead for HTTP/3 · Have HTTP/3 and QUIC been designed to be future-proof? https://ilo.im/15dl89


  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • InstantRegret
  • mdbf
  • osvaldo12
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • kavyap
  • DreamBathrooms
  • JUstTest
  • khanakhh
  • ethstaker
  • tacticalgear
  • cubers
  • normalnudes
  • anitta
  • cisconetworking
  • ngwrru68w68
  • Leos
  • modclub
  • provamag3
  • tester
  • lostlight
  • All magazines