typhon icon indicating copy to clipboard operation
typhon copied to clipboard

Add NewRawRequest

Open milesbxf opened this issue 1 year ago • 0 comments

One common pitfall of using typhon.NewRequest for standard HTTP usage is that it's easy to try and use it like a regular http.NewRequest and pass in a raw body, expecting that to work - but then Typhon encodes the body as JSON. Now of course you could pass in an io.ReadCloser/io.Reader to avoid this, but you'd only know this from digging deep into the Typhon code, not from the docstrings!

milesbxf avatar Feb 09 '24 09:02 milesbxf