@@ -19,7 +19,7 @@ import Foundation
19
19
#endif
20
20
21
21
/// A header field used in an HTTP request or response.
22
- public struct HeaderField : Equatable , Hashable , Sendable {
22
+ public struct HeaderField : Hashable , Sendable {
23
23
24
24
/// The name of the HTTP header field.
25
25
public var name : String
@@ -40,10 +40,10 @@ public struct HeaderField: Equatable, Hashable, Sendable {
40
40
/// Describes the HTTP method used in an OpenAPI operation.
41
41
///
42
42
/// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-7
43
- public struct HTTPMethod : RawRepresentable , Equatable , Hashable , Sendable {
43
+ public struct HTTPMethod : RawRepresentable , Hashable , Sendable {
44
44
45
45
/// Describes an HTTP method explicitly supported by OpenAPI.
46
- private enum OpenAPIHTTPMethod : String , Equatable , Hashable , Sendable {
46
+ private enum OpenAPIHTTPMethod : String , Hashable , Sendable {
47
47
case GET
48
48
case PUT
49
49
case POST
@@ -120,7 +120,7 @@ public struct HTTPMethod: RawRepresentable, Equatable, Hashable, Sendable {
120
120
}
121
121
122
122
/// An HTTP request, sent by the client to the server.
123
- public struct Request : Equatable , Hashable , Sendable {
123
+ public struct Request : Hashable , Sendable {
124
124
125
125
/// The path of the URL for the HTTP request.
126
126
public var path : String
@@ -199,7 +199,7 @@ public struct Request: Equatable, Hashable, Sendable {
199
199
}
200
200
201
201
/// An HTTP response, returned by the server to the client.
202
- public struct Response : Equatable , Hashable , Sendable {
202
+ public struct Response : Hashable , Sendable {
203
203
204
204
/// The status code of the HTTP response, for example `200`.
205
205
public var statusCode : Int
@@ -228,7 +228,7 @@ public struct Response: Equatable, Hashable, Sendable {
228
228
229
229
/// A container for request metadata already parsed and validated
230
230
/// by the server transport.
231
- public struct ServerRequestMetadata : Equatable , Hashable , Sendable {
231
+ public struct ServerRequestMetadata : Hashable , Sendable {
232
232
233
233
/// The path parameters parsed from the URL of the HTTP request.
234
234
public var pathParameters : [ String : String ]
@@ -252,7 +252,7 @@ public struct ServerRequestMetadata: Equatable, Hashable, Sendable {
252
252
}
253
253
254
254
/// Describes the kind and associated data of a URL path component.
255
- public enum RouterPathComponent : Equatable , Hashable , Sendable {
255
+ public enum RouterPathComponent : Hashable , Sendable {
256
256
257
257
/// A constant string component.
258
258
///
0 commit comments