Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DebugLib EthernetInterface cantcoap mbed-rtos
Fork of yeswecancoap by
request.h@3:e03960f91763, 2015-10-20 (annotated)
- Committer:
- sillevl
- Date:
- Tue Oct 20 20:57:45 2015 +0000
- Revision:
- 3:e03960f91763
- Parent:
- 1:ab04e3d36ade
- Child:
- 5:1924c60356d0
resource functions working (no method filtering yet)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 1:ab04e3d36ade | 1 | #pragma once |
sillevl | 1:ab04e3d36ade | 2 | |
sillevl | 1:ab04e3d36ade | 3 | class Request{ |
sillevl | 1:ab04e3d36ade | 4 | |
sillevl | 1:ab04e3d36ade | 5 | public: |
sillevl | 3:e03960f91763 | 6 | Request(); |
sillevl | 1:ab04e3d36ade | 7 | void respond(char*, int size); |
sillevl | 3:e03960f91763 | 8 | |
sillevl | 3:e03960f91763 | 9 | char* getPayload(); |
sillevl | 3:e03960f91763 | 10 | int getPayLoadSize(); |
sillevl | 3:e03960f91763 | 11 | |
sillevl | 3:e03960f91763 | 12 | private: |
sillevl | 3:e03960f91763 | 13 | char* payload; |
sillevl | 3:e03960f91763 | 14 | int payloadSize; |
sillevl | 1:ab04e3d36ade | 15 | }; |