RLMHTTPMethod
Objective-C
enum RLMHTTPMethod : int32_t {}
Swift
@_nonSendable(_assumed) @frozen enum RLMHTTPMethod : Int32, @unchecked Sendable
允许将HTTP方法与RLMNetworkTransport
一起使用。
-
GET 用于从指定资源请求数据。
声明
Objective-C
RLMHTTPMethodGET = 0
Swift
case GET = 0
-
POST 用于向服务器发送数据以创建/更新资源。
声明
Objective-C
RLMHTTPMethodPOST = 1
Swift
case POST = 1
-
PATCH 用于向服务器发送数据以更新资源。
声明
Objective-C
RLMHTTPMethodPATCH = 2
Swift
case PATCH = 2
-
PUT 用于向服务器发送数据以创建/更新资源。
声明
Objective-C
RLMHTTPMethodPUT = 3
Swift
case PUT = 3
-
DELETE 方法删除指定的资源。
声明
Objective-C
RLMHTTPMethodDELETE = 4
Swift
case DELETE = 4