pendingRequestMethod (property)

The request's method.

Syntax

- (int)pendingRequestMethod:(int)pendingRequestIndex;
public func pendingRequestMethod(pendingRequestIndex: Int32) throws -> Int32

Default Value

0

Remarks

The request's method.

This property reflects the request's method code, which must be a value in the range 0 to 31. The following table provides a (non-exhaustive) list of some of the more common method codes; refer to the IANA's CoAP Method Codes registry for a full list.

Method Code Name
1 GET
2 POST
3 PUT
4 DELETE
5 FETCH
6 PATCH

The PendingRequestIndex parameter specifies the index of the item in the array. The size of the array is controlled by the PendingRequestCount property.

This property is read-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 iOS Edition - Version 20.0 [Build 8265]