das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
das_url Struct Reference

A parsed URL structure. More...

#include <das3/http.h>

Public Member Functions

DAS_API char * das_url_toStr (const struct das_url *pUrl, char *sBuf, size_t uLen)
 Convert a URL structure into a string.
 

Data Fields

char sScheme [DASURL_SZ_SCHEME+1]
 The scheme string.
 
char sHost [DASURL_SZ_HOST+1]
 The host string.
 
char sPath [DASURL_SZ_PATH+1]
 The path on the host.
 
char sQuery [DASURL_SZ_QUERY+1]
 The query string.
 
char sDataset [DASURL_SZ_DATASET+1]
 The dataset identified in the query string (if any)
 
char sPort [DASURL_SZ_PORT+1]
 The port number used to make the request, saved as a string.
 

Detailed Description

A parsed URL structure.

Member Function Documentation

◆ das_url_toStr()

DAS_API char * das_url_toStr ( const struct das_url *  pUrl,
char *  sBuf,
size_t  uLen 
)

Convert a URL structure into a string.

The scheme's default port is left out, any other is written after a colon.

Parameters
pUrlThe parsed URL
sBufThe output buffer
uLenThe size of sBuf, including room for the NUL
Returns
sBuf, or NULL if the URL has no scheme or host or the whole string did not fit. sBuf is always NUL terminated when uLen > 0.

The documentation for this struct was generated from the following file: