Closed grosch closed 4 years ago
@tanner0101 @gwynne Thoughts?
It's only here because this is where Model
is. If you want to put a protocol into vapor/vapor that knows about Model
I'm fine with it moving there.
I opened an issue here: https://github.com/vapor/vapor/issues/2318
Adds a
verifyETag(on:)
toEventLoopFuture
to verify incoming ETag.Adds a
ModelContent
protocol which tagsContent
which includes aninit(model:)
constructor to generate a DTO based on a model.Adds
withETag
andcreatedWithETag
methods to generate aResponse
that includes the etag and location (on created) headers.Must be released at the same time as https://github.com/vapor/fluent-kit/pull/243