filetype
filetype copied to clipboard
How do I get the http streaming file type
I would like to retrieve an HTTP response file in a streaming manner. What is the best approach for detecting the file type during the streaming process?
you can use bufio reader and call peek method on it.