Arduino DLNA Server
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tiny_dlna::HttpTunnel Class Reference

Forwards a request to a destination URL and provides a pointer to the result stream. More...

#include <HttpTunnel.h>

Collaboration diagram for tiny_dlna::HttpTunnel:
Collaboration graph
[legend]

Public Member Functions

 HttpTunnel (const char *url, const char *mime="text/html")
 
Stream * get ()
 Executes the get request. More...
 
HttpRequestrequest ()
 
const char * mime ()
 

Protected Member Functions

bool isOk (int code)
 

Protected Attributes

Url v_url
 
HttpRequest v_request
 
const char * v_mime
 

Detailed Description

Forwards a request to a destination URL and provides a pointer to the result stream.

Constructor & Destructor Documentation

◆ HttpTunnel()

tiny_dlna::HttpTunnel::HttpTunnel ( const char *  url,
const char *  mime = "text/html" 
)
inline

Member Function Documentation

◆ get()

Stream* tiny_dlna::HttpTunnel::get ( )
inline

Executes the get request.

◆ isOk()

bool tiny_dlna::HttpTunnel::isOk ( int  code)
inlineprotected

◆ mime()

const char* tiny_dlna::HttpTunnel::mime ( )
inline

◆ request()

HttpRequest& tiny_dlna::HttpTunnel::request ( )
inline

Member Data Documentation

◆ v_mime

const char* tiny_dlna::HttpTunnel::v_mime
protected

◆ v_request

HttpRequest tiny_dlna::HttpTunnel::v_request
protected

◆ v_url

Url tiny_dlna::HttpTunnel::v_url
protected

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