Skip to content

Commit e97b2fb

Browse files
committed
Add SetParam() function.
1 parent f1e9fbc commit e97b2fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/XrdCl/XrdClURL.hh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,15 @@ namespace XrdCl
277277
ComputeURL();
278278
}
279279

280+
//------------------------------------------------------------------------
281+
//! Set a single param
282+
//------------------------------------------------------------------------
283+
void SetParam( const std::string &name, const std::string &value )
284+
{
285+
pParams[name] = value;
286+
ComputeURL();
287+
}
288+
280289
//------------------------------------------------------------------------
281290
//! Parse a string and fill the URL fields
282291
//------------------------------------------------------------------------

0 commit comments

Comments
 (0)