Skip to content

Updated Request body to accept String, Bytes, IO or Nil#20

Open
naqvis wants to merge 5 commits intocrystal-community:masterfrom
naqvis:master
Open

Updated Request body to accept String, Bytes, IO or Nil#20
naqvis wants to merge 5 commits intocrystal-community:masterfrom
naqvis:master

Conversation

@naqvis
Copy link

@naqvis naqvis commented Jul 27, 2019

Body with String type was more restrictive and for arbitrary large binary files, it required to read everything into String and then invoke Request method. Crystal HTTP::Request also accepts the same modified Body types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant