D
Deno

help

How to prevent std/http from gzipping and overriding Etag

Rraunioroo3/5/2023
It appears deno std/http applies gzip content-encoding magically sometimes depending on the type of data served. This is unexpected to me, will override manually set Etags with a weakly validated one, and it seems there is no way to disable this behaviour. Or is there? If I create a Github issue about this, should it go to deno_std or does this behaviour come from underlying http impl code in deno core?
UUUnknown User3/5/2023
Message Not Public
Sign In & Join Server To View
Rraunioroo3/5/2023
The various http server implementations have been such moving target, flash/oak/hyper/lowlevel deno core, I've tried them all and rewrote for them all. So far the std/http seems the only one that is somewhat stable, somewhat feature-complete, not a moving target, and mostly not buggy. I would highly prefer to not rewrite yet again for another http impl variant until flash is 99% stable API-wise, feature-complete and bugfree. Sorry this turned into a rant, lol. Is just, not even sure what the vanilla method is, even. If it's flash, that's not working for various other reasons. Just hoping I could make things just work with std/http for now.
UUUnknown User3/5/2023
2 Messages Not Public
Sign In & Join Server To View
Rraunioroo3/6/2023
Thank you for the input! I created an issue on deno_std: https://github.com/denoland/deno_std/issues/3231 And consider the need to fall back to the lower level "vanilla" http api, if I can't make it work with std/http
GitHub
allow disabling gzip in http · Issue #3231 · denoland/deno_std
Is your feature request related to a problem? Please describe. Apparently the std http server implementation automagically applies gzip compression for some responses. (I'm guessing for res...

Looking for more? Join the community!

Recommended Posts
Fresh in a Docker exiting processNot sure whats going wrong. Works fine on deno deploy. But when trying to run it inside a docker coneval script with stricter permissions in denoHi all, I wanted to know if its possible to eval a script in deno with more strict permissions. Somesolid-js with DenoI was wondering if it was possible to use solid-js with Deno natively without something like esbuildFeature Suggestion: Dark Mode for `std` library Docs.Deno's documentation is great. I find myself reading it more and more. I currently use a browser addRunning esbuild with esbuild_deno_loaderI've spent probably four or five hours trying to track down this issue, to the point where I actuall`fetch` request always fails onceHello, I got a script containing a `fetch` request. Once in a while, it throws the `connection closeSequentially write to TPC connectionHey, I experience errors when multiple async functions write to a TCP (`Deno.Conn`) connection. How I'd like to change the background colour of the `body` element in Fresh. How do I do that simply?(see title)Deno process watcher. How?This code when compile, runs a simple http server. ```ts import { serve } from "https://deno.land/stmonaco-editor on freshHello. First of all, I am a newbie in web development. I played around with Deno for a while. So I tdeno in Dockerfilei have successfully installed deno with theese commands: ``` # install denojs RUN curl -fsSL https:could not find npm package forI'm trying to make Hardhat CLI work with Deno but I stumbled upon this error which comes from Deno: