Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions RemoteBrowserMobProxy/RemoteBrowserMobProxyInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,14 @@ public void ClearBlackListUrl()
_restClient.Execute(req);
}

public void LimitBandwidth(BandwidthLimits bandwidthLimits)
public void LimitBandwidth(BandwidthLimits bandwidthLimits, List<string> names)
{
var res = new RestRequest(LimitHandler, Method.POST);
_restClient.Execute(res);
var req = new RestRequest("limit", Method.PUT);
foreach (string name in names)
{
req.AddObject(bandwidthLimits, name);
}
_restClient.Execute(req);
}

public void GetBandwidthLimits()
Expand Down Expand Up @@ -225,4 +229,4 @@ public void Dispose()
ShutdownProxyInstance();
}
}
}
}