it’s pretty common on these forums to post links to API documentation that may break after some time.
for example: here’s a 3-year old post by @johannesweiss :
That's a great question! The overly simplistic answer is to accumulate all the bits of the HTTP request body you receive in say a var receivedBits: CircularBuffer<ByteBuffer> in your ChannelHandler. Once you receive them, you write them to disk one after the other using NonBlockingFileIO.
The reason I called this overly simplistic is because that would leave your server vulnerable to a fairly straightforward denial of service attack: If writing to disk is slower than the client sending you data…
it contains a link to
https://apple.github.io/swift-nio/docs/current/NIO/Structs/ChannelOptions.html#/s:3NIO14ChannelOptionsV8autoReadAC5TypesO04AutoE6OptionVvpZ
which no longer works. but from context, it’s clear he is referring to
discourse disables editing posts after a while. is there any workaround we can use to update these hyperlinks? despite their age, these posts would still be quite useful if the links were fixed.
5 Likes