Skip to content

用HttpResponseMessage接受返回时,接口返回404会触发异常 #212

@Ramoshuai

Description

@Ramoshuai

目前可以通过特性[RawReturn( EnsureSuccessStatusCode =false)] 跳过校验。
是否可以智能一点,在RawReturnAttribute 的SetResultAsync 中,如果ApiAction.Return.DataType是HttpResponseMessage的时候,直接跳过状态码校验

Metadata

Metadata

Assignees

No one assigned

    Labels

    设计如此(as designed)这个标签意味着设计的本意就是这样,将不会采纳修改意见(This label means that the design is intended to be like this, and no rev)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions