PendingRequestMethod Property
The request's method.
Syntax
ANSI (Cross Platform) int GetPendingRequestMethod(int iPendingRequestIndex); Unicode (Windows) INT GetPendingRequestMethod(INT iPendingRequestIndex);
- (int)pendingRequestMethod:(int)pendingRequestIndex;
#define PID_COAP_PENDINGREQUESTMETHOD 5 IPWORKSIOT_EXTERNAL void* IPWORKSIOT_CALL IPWorksIoT_CoAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSIOT_EXTERNAL int IPWORKSIOT_CALL IPWorksIoT_CoAP_CheckIndex(void *lpObj, int propid, int arridx);
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 and not available at design time.
Data Type
Integer