MCPcopy Create free account
hub / github.com/SFML/SFML / setUri

Method setUri

src/SFML/Network/Http.cpp:71–78  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

69
70////////////////////////////////////////////////////////////
71void Http::Request::setUri(const std::string& uri)
72{
73 m_uri = uri;
74
75 // Make sure it starts with a '/'
76 if (m_uri.empty() || (m_uri[0] != '/'))
77 m_uri.insert(m_uri.begin(), '/');
78}
79
80
81////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected