mirror of https://github.com/rwf2/Rocket.git
Document '&[u8]' form/data guard, limits.
This commit is contained in:
parent
f14f93afa7
commit
15637186ba
|
@ -59,8 +59,10 @@ use crate::http::uncased::Uncased;
|
||||||
/// | `data-form` | 2MiB | [`Form`] | entire data-based form |
|
/// | `data-form` | 2MiB | [`Form`] | entire data-based form |
|
||||||
/// | `file` | 1MiB | [`TempFile`] | [`TempFile`] data guard or form field |
|
/// | `file` | 1MiB | [`TempFile`] | [`TempFile`] data guard or form field |
|
||||||
/// | `file/$ext` | _N/A_ | [`TempFile`] | file form field with extension `$ext` |
|
/// | `file/$ext` | _N/A_ | [`TempFile`] | file form field with extension `$ext` |
|
||||||
/// | `string` | 8KiB | [`String`] | data guard or data form field |
|
/// | `string` | 8KiB | [`String`] | data guard or form field |
|
||||||
|
/// | `string` | 8KiB | [`&str`] | data guard or form field |
|
||||||
/// | `bytes` | 8KiB | [`Vec<u8>`] | data guard |
|
/// | `bytes` | 8KiB | [`Vec<u8>`] | data guard |
|
||||||
|
/// | `bytes` | 8KiB | [`&[u8]`] | data guard or form field |
|
||||||
/// | `json` | 1MiB | [`Json`] | JSON data and form payloads |
|
/// | `json` | 1MiB | [`Json`] | JSON data and form payloads |
|
||||||
/// | `msgpack` | 1MiB | [`MsgPack`] | MessagePack data and form payloads |
|
/// | `msgpack` | 1MiB | [`MsgPack`] | MessagePack data and form payloads |
|
||||||
///
|
///
|
||||||
|
|
|
@ -116,11 +116,12 @@ use crate::http::uncased::AsUncased;
|
||||||
/// | _nonzero_ int | _inherit_ | **no default** | No | Yes | `NonZero{I,U}{size,8,16,32,64,128}` |
|
/// | _nonzero_ int | _inherit_ | **no default** | No | Yes | `NonZero{I,U}{size,8,16,32,64,128}` |
|
||||||
/// | float | _inherit_ | **no default** | No | Yes | `f{32,64}` |
|
/// | float | _inherit_ | **no default** | No | Yes | `f{32,64}` |
|
||||||
/// | `&str` | _inherit_ | **no default** | Yes | Yes | Percent-decoded. Data limit `string` applies. |
|
/// | `&str` | _inherit_ | **no default** | Yes | Yes | Percent-decoded. Data limit `string` applies. |
|
||||||
|
/// | `&[u8]` | _inherit_ | **no default** | Yes | Yes | Raw bytes. Data limit `bytes` applies. |
|
||||||
/// | `String` | _inherit_ | **no default** | Yes | Yes | Exactly `&str`, but owned. Prefer `&str`. |
|
/// | `String` | _inherit_ | **no default** | Yes | Yes | Exactly `&str`, but owned. Prefer `&str`. |
|
||||||
/// | IP Address | _inherit_ | **no default** | No | Yes | [`IpAddr`], [`Ipv4Addr`], [`Ipv6Addr`] |
|
/// | IP Address | _inherit_ | **no default** | No | Yes | [`IpAddr`], [`Ipv4Addr`], [`Ipv6Addr`] |
|
||||||
/// | Socket Address | _inherit_ | **no default** | No | Yes | [`SocketAddr`], [`SocketAddrV4`], [`SocketAddrV6`] |
|
/// | Socket Address | _inherit_ | **no default** | No | Yes | [`SocketAddr`], [`SocketAddrV4`], [`SocketAddrV6`] |
|
||||||
/// | [`TempFile`] | _inherit_ | **no default** | Yes | Yes | Data limits apply. See [`TempFile`]. |
|
/// | [`TempFile`] | _inherit_ | **no default** | Yes | Yes | Data limits apply. See [`TempFile`]. |
|
||||||
/// | [`Capped<C>`] | _inherit_ | **no default** | Yes | Yes | `C` is `&str`, `String`, `&[u8]` or `TempFile`. |
|
/// | [`Capped<C>`] | _inherit_ | **no default** | Yes | Yes | `C` is `&str`, `String`, `&[u8]` or `TempFile`. |
|
||||||
/// | [`time::Date`] | _inherit_ | **no default** | No | Yes | `%F` (`YYYY-MM-DD`). HTML "date" input. |
|
/// | [`time::Date`] | _inherit_ | **no default** | No | Yes | `%F` (`YYYY-MM-DD`). HTML "date" input. |
|
||||||
/// | [`time::DateTime`] | _inherit_ | **no default** | No | Yes | `%FT%R` or `%FT%T` (`YYYY-MM-DDTHH:MM[:SS]`) |
|
/// | [`time::DateTime`] | _inherit_ | **no default** | No | Yes | `%FT%R` or `%FT%T` (`YYYY-MM-DDTHH:MM[:SS]`) |
|
||||||
/// | [`time::Time`] | _inherit_ | **no default** | No | Yes | `%R` or `%T` (`HH:MM[:SS]`) |
|
/// | [`time::Time`] | _inherit_ | **no default** | No | Yes | `%R` or `%T` (`HH:MM[:SS]`) |
|
||||||
|
|
Loading…
Reference in New Issue