warp icon indicating copy to clipboard operation
warp copied to clipboard

`Origin` and `IntoOrigin` are undocumented

Open lovasoa opened this issue 4 years ago • 1 comments

The documentation for warp::filters::cors mentions an Origin struct and an IntoOrigin trait, but does not seem to contain any information about what they are, what they are implemented on, and so on.

image

image

This would be fixed by https://github.com/seanmonstar/warp/pull/769

lovasoa avatar Aug 15 '21 08:08 lovasoa

I was surprised to get errors about IntoOrgin not being implemented on String until I looked at the source code of wrap itself and saw that it is implemented only on &str

lovasoa avatar Aug 15 '21 08:08 lovasoa