Skip to content

Commit

Permalink
[#14] Added remoteRequest.Xxx code as webtools.Xpp
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <[email protected]>
  • Loading branch information
Clovis Durand committed Dec 12, 2019
1 parent e9e3c35 commit 467f6e1
Show file tree
Hide file tree
Showing 2 changed files with 615 additions and 0 deletions.
27 changes: 27 additions & 0 deletions software/inc/webtools.hpp
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);
Loading

0 comments on commit 467f6e1

Please sign in to comment.