CanHandle Method
Definition
- Namespace
- Codebelt.Extensions.Carter.Response
- Assemblies
- Codebelt.Extensions.Carter.dll
CanHandle(MediaTypeHeaderValue)
Determines whether this negotiator can handle the specified accept media type.
public virtual bool CanHandle(MediaTypeHeaderValue accept)
Parameters
acceptMediaTypeHeaderValueThe MediaTypeHeaderValue from the HTTP request's Accept header.
Returns
- bool
trueif the negotiator can handle the specified media type; otherwise,false.