-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#14] Added remoteRequest.Xxx code as webtools.Xpp
Signed-off-by: Clovis Durand <[email protected]>
- Loading branch information
Clovis Durand
committed
Dec 12, 2019
1 parent
e9e3c35
commit 467f6e1
Showing
2 changed files
with
615 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Let There Be Light project | ||
* | ||
* @file remoteRequest.hxx | ||
*/ | ||
|
||
/* Includes -------------------------------------------- */ | ||
|
||
/* Defines --------------------------------------------- */ | ||
|
||
/* Type definitions ------------------------------------ */ | ||
typedef enum _restMethods { | ||
REST_UNKNOWN = 0, | ||
REST_INDEX, /* Shows the index page */ | ||
REST_GET, /* GET is used to request data from a specified resource. */ | ||
REST_POST, /* POST is used to send data to a server to create/update a resource. */ | ||
REST_PUT, /* PUT is used to send data to a server to create/update a resource. */ | ||
REST_HEAD, /* HEAD is almost identical to GET, but without the response body. */ | ||
REST_DELETE, /* The DELETE method deletes the specified resource. */ | ||
REST_PATCH, | ||
REST_OPTIONS /* The OPTIONS method describes the communication options for the target resource. */ | ||
} restMethod_t; | ||
|
||
/* Variable declarations ------------------------------- */ | ||
|
||
/* Functions ------------------------------------------- */ | ||
int acceptRequest(const int pSocket, int * const pResult); |
Oops, something went wrong.