#include <chrono>
#include <string>
#include <vector>
#include "openthread/netdiag.h"
Go to the source code of this file.
|
enum | HttpMethod : std::uint8_t {
otbr::rest::HttpMethod::kDelete = 0,
otbr::rest::HttpMethod::kGet = 1,
otbr::rest::HttpMethod::kHead = 2,
otbr::rest::HttpMethod::kPost = 3,
otbr::rest::HttpMethod::kPut = 4,
otbr::rest::HttpMethod::kOptions = 6
} |
|
enum | HttpStatusCode : std::uint16_t {
kStatusOk = 200,
kStatusResourceNotFound = 404,
kStatusMethodNotAllowed = 405,
kStatusRequestTimeout = 408,
kStatusInternalServerError = 500
} |
|
enum | PostError : std::uint8_t { otbr::rest::PostError::kPostErrorNone = 0,
otbr::rest::PostError::kPostBadRequest = 1,
otbr::rest::PostError::kPostSetFail = 2
} |
|
enum | ConnectionState : std::uint8_t {
otbr::rest::ConnectionState::kInit = 0,
otbr::rest::ConnectionState::kReadWait = 1,
otbr::rest::ConnectionState::kReadTimeout = 2,
otbr::rest::ConnectionState::kCallbackWait = 3,
otbr::rest::ConnectionState::kWriteWait = 4,
otbr::rest::ConnectionState::kWriteTimeout = 5,
otbr::rest::ConnectionState::kInternalError = 6,
otbr::rest::ConnectionState::kComplete = 7
} |
|
This file includes type definitions for OTBR-REST.