Skip to content

Commit 367653f

Browse files
committed
maxUploadSize comment change
1 parent 99f81c3 commit 367653f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/Hummingbird/Server/RequestContext.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ public protocol RequestContext: InitializableFromSource, RequestContextSource {
6363

6464
/// Core context
6565
var coreContext: CoreRequestContextStorage { get set }
66-
/// Maximum upload size allowed for routes that don't stream the request payload. This
67-
/// limits how much memory would be used for one request
66+
/// Maximum size of request body allowed when decoding requests. If a request body
67+
/// that needs decoding is greater than this size then a Content Too Large (413)
68+
/// response is returned. This only applies to decoding requests.
6869
var maxUploadSize: Int { get }
6970
/// Request decoder
7071
var requestDecoder: Decoder { get }
@@ -80,7 +81,7 @@ extension RequestContext {
8081
set { coreContext.logger = newValue }
8182
}
8283

83-
/// maxUploadSize
84+
/// Maximum size of request body allowed when decoding requests.
8485
@inlinable
8586
public var maxUploadSize: Int { 2 * 1024 * 1024 }
8687
/// Endpoint path

0 commit comments

Comments
 (0)