次のクラスを検討してください
public class StController:apicontroller {
public void PostBodyMethod() {
HttpRequestMessage request=this.request;
//How to read the header and body parameters
}
}
アプレットは、ヘッダーと本文の両方のパラメーターを post メソッドに送信します。HttpRequestMessage オブジェクトを使用して、webapi コントローラー内の post メソッドと共に送信される情報を取得するにはどうすればよいですか?