web-poet
web-poet copied to clipboard
add an alternative constructor from_anystr() in HttpRequestBody
Stemming off from this PR: https://github.com/scrapinghub/web-poet/pull/22
The main motivation for this is for developers to easily create HttpRequestBody
and HttpRequest
instances from both bytes and unicode strings.