Guilherme C. Souza
How to make a function whose return type is inferred to be the same as an input function's
This is what I got so far.
I'm not sure if it's possible, but I need the following:
-
fn
type must be the exact same as finalFunc
's (parameters and return) plus the first parameter being of type Context
- abc
parameter must have it's type properly inferred from Context
when writing finalFunc
Am I missing something?2 replies
How to read Chunked request body?
Hello! Is it possible to read a chunked request body using
for await
? It seems to only read up to the point where the reader is empty and then stop. Since some chunks might only show up after some delay, I need it to read until 'zero-length chunk' is sent, meaning the chunked body is over.4 replies