ITestServer.Post(String, Object) 方法

定义

对测试服务器执行 HTTP POST 请求。

public string Post (string endpoint, object arguments = null);
abstract member Post : string * obj -> string
Public Function Post (endpoint As String, Optional arguments As Object = null) As String

参数

endpoint
String

请求的路径,该路径将追加到测试服务器的 URI 上。

arguments
Object

一个对象,该对象将序列化为 json 并发布到测试服务器。

返回

String

响应的正文。

适用于