1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

add json extractor tests

This commit is contained in:
Nikolay Kim
2019-03-17 09:52:41 -07:00
parent 7435c5e9bf
commit c14c66d2b0
5 changed files with 105 additions and 12 deletions

View File

@@ -87,8 +87,8 @@ impl ResponseError for UrlencodedError {
/// A set of errors that can occur during parsing json payloads
#[derive(Debug, Display, From)]
pub enum JsonPayloadError {
/// Payload size is bigger than allowed. (default: 256kB)
#[display(fmt = "Json payload size is bigger than allowed. (default: 256kB)")]
/// Payload size is bigger than allowed. (default: 32kB)
#[display(fmt = "Json payload size is bigger than allowed.")]
Overflow,
/// Content type error
#[display(fmt = "Content type error")]