Skip to content

Commit 22a8ca4

Browse files
authored
Feature/http303and307 (#31)
1 parent cec2d2e commit 22a8ca4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Sources/FeatherOpenAPIKit/Interfaces/Operation/OperationResponse.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ public extension OperationResponse {
2929
.init(302, response)
3030
}
3131

32+
static func seeOther(_ response: Response.Type) -> Self {
33+
.init(303, response)
34+
}
35+
36+
static func temporaryRedirect(_ response: Response.Type) -> Self {
37+
.init(307, response)
38+
}
39+
3240
static func badRequest(_ response: Response.Type) -> Self {
3341
.init(400, response)
3442
}

0 commit comments

Comments
 (0)