Commit 3449d3d
authored
feat: impl
In warp 0.3 there was a convenient converter from a static byte slice
to response body.
Since warp 0.4 has sucn converters for `String`, `&str`, and
`Vec<u8>`, I think it would be reasonable to have such a converter for
`&[u8]` as well.From<&'static [u8]> for Body (#1144)1 parent dbb0d33 commit 3449d3d
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
0 commit comments