XDK API  3.6.0
Documentation
Data Structures | Typedefs | Enumerations | Functions
Serval_Url.h File Reference

Functions to allow parsing a (limited) URL. More...

#include <Serval_StringDescr.h>
#include <Serval_Types.h>
#include <Serval_Ip.h>
+ Include dependency graph for Serval_Url.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  Serval_Supported_Url_S
 
struct  Serval_Url_S
 

Typedefs

typedef enum
Serval_Supported_Schemes_e 
Serval_Supported_Schemes_t
 
typedef struct
Serval_Supported_Url_S 
Serval_Supported_Url_T
 
typedef struct Serval_Url_S Serval_Url_T
 

Enumerations

enum  Serval_Supported_Schemes_e
 

Functions

retcode_t SupportedUrl_fromString (const char *input, uint16_t length, Serval_Supported_Url_T *url)
 
retcode_t SupportedUrl_partsFromString (const char *input, uint16_t length, Serval_Supported_Schemes_t *scheme, Ip_Address_T *address, Ip_Port_T *port, StringDescr_T *path)
 
retcode_t Url_fromString (const char *input, uint16_t length, Serval_Url_T *url)
 

Detailed Description

The stack uses URLs at various points. This is a central interface to bundle parsing URLs. It is currently limited to extracting schemes, IP/host, port and the rest (path + query)

Note that none of the information is copied and thus vanishes with the original data.

Typedef Documentation

typedef struct Serval_Url_S Serval_Url_T

Enumeration Type Documentation

Enumerator
SERVAL_SCHEME_FLAG_SECURE 
SERVAL_SCHEME_HTTP 
SERVAL_SCHEME_HTTPS 
SERVAL_SCHEME_COAP 
SERVAL_SCHEME_COAPS 
SERVAL_SCHEME_MQTT 
SERVAL_SCHEME_MQTTS 

Function Documentation

retcode_t SupportedUrl_fromString ( const char *  input,
uint16_t  length,
Serval_Supported_Url_T url 
)
retcode_t SupportedUrl_partsFromString ( const char *  input,
uint16_t  length,
Serval_Supported_Schemes_t scheme,
Ip_Address_T address,
Ip_Port_T port,
StringDescr_T path 
)
retcode_t Url_fromString ( const char *  input,
uint16_t  length,
Serval_Url_T url 
)

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:46 by doxygen 1.8.8