SetBody() публичный Метод

Set the body to one or many objects, overriding any other values the body may have
public SetBody ( ) : Response
Результат Response
Пример #1
0
			public override IResponse Call(IRequest request) {
			    Response response = new Response();

			    switch (request.Uri) {
				case "/badResponse":
				    response.SetBody(5); // add unkown object type into body
				    break;
				default:
				    response.Write("You requested {0} {1}", request.Method, request.Uri);
				    break;
			    }

			    return response;
			}