fix(core): update

This commit is contained in:
2021-08-16 15:36:41 +02:00
parent aa78c3465a
commit 5734ca9444
14 changed files with 25164 additions and 839 deletions

View File

@@ -8,7 +8,7 @@ export class Status300 extends HttpStatus {
description: `Indicates multiple options for the resource from which the client may choose
(via agent-driven content negotiation).
For example, this code could be used to present multiple video format options,
to list files with different filename extensions, or to suggest word-sense disambiguation.`
to list files with different filename extensions, or to suggest word-sense disambiguation.`,
});
}
}
@@ -20,7 +20,7 @@ export class Status301 extends HttpStatus {
super({
code: 301,
text: 'Moved Permanently',
description: `This and all future requests should be directed to the given URI.`
description: `This and all future requests should be directed to the given URI.`,
});
}
}
@@ -37,7 +37,7 @@ export class Status302 extends HttpStatus {
(the original describing phrase was "Moved Temporarily"),
[20] but popular browsers implemented 302 with the functionality of a 303 See Other.
Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.[21]
However, some Web applications and frameworks use the 302 status code as if it were the 303.`
However, some Web applications and frameworks use the 302 status code as if it were the 303.`,
});
}
}
@@ -52,7 +52,7 @@ export class Status303 extends HttpStatus {
description: `The response to the request can be found under another URI using a GET method.
When received in response to a POST (or PUT/DELETE),
the client should presume that the server has received the data and should issue a redirect
with a separate GET message.`
with a separate GET message.`,
});
}
}
@@ -67,7 +67,7 @@ export class Status304 extends HttpStatus {
description: `Indicates that the resource has not been modified
since the version specified by the request headers If-Modified-Since or If-None-Match.
In such case, there is no need to retransmit the resource since the client
still has a previously-downloaded copy.`
still has a previously-downloaded copy.`,
});
}
}
@@ -82,7 +82,7 @@ export class Status305 extends HttpStatus {
description: `The requested resource is available only through a proxy,
the address for which is provided in the response. Many HTTP clients (such as Mozilla[25]
and Internet Explorer) do not correctly handle responses with this status code,
primarily for security reasons.`
primarily for security reasons.`,
});
}
}
@@ -94,7 +94,7 @@ export class Status306 extends HttpStatus {
super({
code: 306,
text: 'Switch Proxy',
description: `No longer used. Originally meant "Subsequent requests should use the specified proxy."`
description: `No longer used. Originally meant "Subsequent requests should use the specified proxy."`,
});
}
}
@@ -110,7 +110,7 @@ export class Status307 extends HttpStatus {
however, future requests should still use the original URI.
In contrast to how 302 was historically implemented,
the request method is not allowed to be changed when reissuing the original request.
For example, a POST request should be repeated using another POST request.`
For example, a POST request should be repeated using another POST request.`,
});
}
}
@@ -124,7 +124,7 @@ export class Status308 extends HttpStatus {
text: 'Permanent Redirect',
description: `The request and all future requests should be repeated using another URI.
307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.
So, for example, submitting a form to a permanently redirected resource may continue smoothly.`
So, for example, submitting a form to a permanently redirected resource may continue smoothly.`,
});
}
}