Instance Propertyvapor 4.114.1Vapor
shouldForce
A flag to force the override atop whatever the response or output of middleware that process the response before this one.
var shouldForce: Bool
A flag to force the override atop whatever the response or output of middleware that process the response before this one.
var shouldForce: Bool
s5Vapor29ResponseCompressionMiddlewareV11shouldForceSbvp
What are these?7QORB
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct ResponseCompressionMiddleware
Overrides the response compression settings for a route.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(override: HTTPHeaders.ResponseCompression, force shouldForce: Bool = false)
Initialize a response compression middleware with an override.
var responseCompressionOverride: HTTPHeaders.ResponseCompression
The response compression override to use over the base configuration.
func respond(to request: Request, chainingTo next: any AsyncResponder) async throws -> Response