@@ -19,7 +19,7 @@ import Foundation
1919#endif
2020
2121/// A header field used in an HTTP request or response.
22- public struct HeaderField : Equatable , Hashable , Sendable {
22+ public struct HeaderField : Hashable , Sendable {
2323
2424 /// The name of the HTTP header field.
2525 public var name : String
@@ -40,10 +40,10 @@ public struct HeaderField: Equatable, Hashable, Sendable {
4040/// Describes the HTTP method used in an OpenAPI operation.
4141///
4242/// 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 {
4444
4545 /// Describes an HTTP method explicitly supported by OpenAPI.
46- private enum OpenAPIHTTPMethod : String , Equatable , Hashable , Sendable {
46+ private enum OpenAPIHTTPMethod : String , Hashable , Sendable {
4747 case GET
4848 case PUT
4949 case POST
@@ -120,7 +120,7 @@ public struct HTTPMethod: RawRepresentable, Equatable, Hashable, Sendable {
120120}
121121
122122/// An HTTP request, sent by the client to the server.
123- public struct Request : Equatable , Hashable , Sendable {
123+ public struct Request : Hashable , Sendable {
124124
125125 /// The path of the URL for the HTTP request.
126126 public var path : String
@@ -199,7 +199,7 @@ public struct Request: Equatable, Hashable, Sendable {
199199}
200200
201201/// An HTTP response, returned by the server to the client.
202- public struct Response : Equatable , Hashable , Sendable {
202+ public struct Response : Hashable , Sendable {
203203
204204 /// The status code of the HTTP response, for example `200`.
205205 public var statusCode : Int
@@ -228,7 +228,7 @@ public struct Response: Equatable, Hashable, Sendable {
228228
229229/// A container for request metadata already parsed and validated
230230/// by the server transport.
231- public struct ServerRequestMetadata : Equatable , Hashable , Sendable {
231+ public struct ServerRequestMetadata : Hashable , Sendable {
232232
233233 /// The path parameters parsed from the URL of the HTTP request.
234234 public var pathParameters : [ String : String ]
@@ -252,7 +252,7 @@ public struct ServerRequestMetadata: Equatable, Hashable, Sendable {
252252}
253253
254254/// Describes the kind and associated data of a URL path component.
255- public enum RouterPathComponent : Equatable , Hashable , Sendable {
255+ public enum RouterPathComponent : Hashable , Sendable {
256256
257257 /// A constant string component.
258258 ///
0 commit comments