36 ms·
Just cos I was curious and Java has a pretty good comprehensive library. - PNG: https://docs.oracle.com/en/java/javase/14/docs/api/java.desktop/javax/imageio/p
by afandian 3y ago
Just cos I was curious and Java has a pretty good comprehensive library.
- PNG: https://docs.oracle.com/en/java/javase/14/docs/api/java.desktop/javax/imageio/package-summary.html https://docs.oracle.com/en/java/javase/14/docs/api/java.desk...
- HMAC - https://docs.oracle.com/en/java/javase/14/docs/api/java.xml.crypto/javax/xml/crypto/dsig/SignatureMethod.html#HMAC_SHA1 https://docs.oracle.com/en/java/javase/14/docs/api/java.xml....
You need Jetty for HTTP/2.
- crop_rotation 3y agoJava also has a comprehensive stdlib but the golang stdlib is designed so much better, and has a small number of simple and orthogonal concepts. (e.g io.Reader and io.Writer go a long way, compared to the 20 io interfaces in java).
- cogman10 3y agoDang, If you didn't have the 2 requirement java could do it with this https://docs.oracle.com/en/java/javase/20/docs/api/jdk.httpserver/module-summary.html https://docs.oracle.com/en/java/javase/20/docs/api/jdk.https... I'll betcha 2 for the server comes soon.
- pjmlp 3y agoWe are now with Java 21 around the corner, and any Java EE server (nowadays Jakarta EE) framework supports HTTP/2, which is basically the Java standard library for servers.