Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Add Request.CreateResponse extension methods #1282

Closed
rynowak opened this issue Oct 8, 2014 · 1 comment
Closed

Add Request.CreateResponse extension methods #1282

rynowak opened this issue Oct 8, 2014 · 1 comment
Assignees
Milestone

Comments

@rynowak
Copy link
Member

rynowak commented Oct 8, 2014

We need to port the family of CreateResponse/CreateErrorResponse methods from WebAPI.

@rynowak rynowak added this to the 6.0.0-beta1 milestone Oct 8, 2014
@rynowak rynowak self-assigned this Oct 8, 2014
rynowak added a commit that referenced this issue Oct 10, 2014
Adds the set of CreateResponse/CreateErrorResponse extension methods that
return an HttpResponseMessage.

For the overloads that perform content negotiation they will access the
collection of MediaTypeFormatters through the shim options. Note that
CreateResponse and friends use the OLD formatters.

Also, HttpError and CreateErrorResponse assume ErrorDetail == false. Using
the shim you will not get detailed error messages unless you construct the
HttpError instance yourself.
rynowak added a commit that referenced this issue Oct 10, 2014
Adds the set of CreateResponse/CreateErrorResponse extension methods that
return an HttpResponseMessage.

For the overloads that perform content negotiation they will access the
collection of MediaTypeFormatters through the shim options. Note that
CreateResponse and friends use the OLD formatters.

Also, HttpError and CreateErrorResponse assume ErrorDetail == false. Using
the shim you will not get detailed error messages unless you construct the
HttpError instance yourself.
rynowak added a commit that referenced this issue Oct 10, 2014
Adds the set of CreateResponse/CreateErrorResponse extension methods that
return an HttpResponseMessage.

For the overloads that perform content negotiation they will access the
collection of MediaTypeFormatters through the shim options. Note that
CreateResponse and friends use the OLD formatters.

Also, HttpError and CreateErrorResponse assume ErrorDetail == false. Using
the shim you will not get detailed error messages unless you construct the
HttpError instance yourself.
@rynowak
Copy link
Member Author

rynowak commented Oct 10, 2014

Merged to dev 3968df9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant