* RESTCONF "content" query parameter supported
* New clixon-lib@2019-08-13.yang revision * Bugfix: If `ietf-netconf.yang` was imported from any yang module, client/backend communication stops working.
This commit is contained in:
parent
48022e57b9
commit
8b7b7b0f60
20 changed files with 507 additions and 62 deletions
|
|
@ -57,6 +57,16 @@ enum restconf_media{
|
|||
};
|
||||
typedef enum restconf_media restconf_media;
|
||||
|
||||
/*! Content query parameter RFC 8040 Sec 4.8.1
|
||||
*/
|
||||
enum query_content{
|
||||
CONTENT_CONFIG,
|
||||
CONTENT_NONCONFIG,
|
||||
CONTENT_ALL /* default */
|
||||
|
||||
};
|
||||
typedef enum query_content query_content;
|
||||
|
||||
/*
|
||||
* Prototypes (also in clixon_restconf.h)
|
||||
*/
|
||||
|
|
@ -66,6 +76,8 @@ const char *restconf_code2reason(int code);
|
|||
const restconf_media restconf_media_str2int(char *media);
|
||||
const char *restconf_media_int2str(restconf_media media);
|
||||
restconf_media restconf_content_type(FCGX_Request *r);
|
||||
const query_content query_content_str2int(char *str);
|
||||
const char *query_content_int2str(query_content nr);
|
||||
int restconf_badrequest(FCGX_Request *r);
|
||||
int restconf_unauthorized(FCGX_Request *r);
|
||||
int restconf_forbidden(FCGX_Request *r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue