Interface IAPIRequest
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
Exposes API that can be used for the Web API testing. This class is used for creating IAPIRequestContext instance which in turn can be used for sending web requests. An instance of this class can be obtained via APIRequest. For more information see IAPIRequestContext.
public interface IAPIRequest
Methods
NewContextAsync(APIRequestNewContextOptions?)
Creates new instances of IAPIRequestContext.
Task<IAPIRequestContext> NewContextAsync(APIRequestNewContextOptions? options = null)
Parameters
options
APIRequestNewContextOptionsCall options