
- Fixed segfault when attempting to initialseek on disconnected streams - Fix 100% CPU bug in controller's stats code - WebRTC UDP bind socket improvements - Several segfault fixes - Increased packet reordering buffer size from 30 to 150 packets - Tweaks to default output/buffer behaviour for incoming pushes - Added message for load balancer checks - Fixed HLS content type - Stats fixes - Exit reason fixes - Fixed socket IP address detection - Fixed non-string arguments for stream settings - Added caching for getConnectedBinHost() - Added WebRTC playback rate control - Added/completed VP8/VP9 support to WebRTC/RTSP - Added live seek option to WebRTC - Fixed seek to exactly newest timestamp - Fixed HLS input # Conflicts: # lib/defines.h # src/input/input.cpp
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
/// \file url.h
|
|
/// Holds all headers for the HTTP::URL class.
|
|
|
|
#pragma once
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
#include <inttypes.h>
|
|
|
|
/// Holds all HTTP processing related code.
|
|
namespace HTTP{
|
|
|
|
/// URL parsing class. Parses full URL into its subcomponents
|
|
class URL{
|
|
public:
|
|
URL(const std::string &url = "");
|
|
uint32_t getPort() const;
|
|
uint32_t getDefaultPort() const;
|
|
std::string getExt() const;
|
|
std::string getUrl() const;
|
|
std::string getFilePath() const;
|
|
std::string getBareUrl() const;
|
|
std::string getProxyUrl() const;
|
|
std::string host; ///< Hostname or IP address of URL
|
|
std::string protocol; ///< Protocol of URL
|
|
std::string port; ///< Port of URL
|
|
std::string path; ///< Path after the first slash (not inclusive) but before any question mark
|
|
std::string args; ///< Everything after the question mark in the path, if it was present
|
|
std::string frag; ///< Everything after the # in the path, if it was present
|
|
std::string user; ///< Username, if it was present
|
|
std::string pass; ///< Password, if it was present
|
|
URL link(const std::string &l) const;
|
|
bool IPv6Addr;
|
|
};
|
|
|
|
}// namespace HTTP
|