【发布时间】:2017-11-13 23:28:09
【问题描述】:
我正在尝试使用新的 HttpClient 和 HttpParams 发出 put 请求,但似乎我无法正确发送更新的对象。我试图将对象作为这样的参数:This is where i make my request 这是我的类:myclass 这些是他的请求标头enter image description here 和参数部分:enter image description here 请求响应引发空引用异常,因为我猜它无法映射它们?
【问题讨论】:
-
请将代码和消息发布为文本而不是屏幕截图。 How to Ask
标签: angular http typescript asp.net-web-api request