Junior.Route.Routing.Responses.Response.ContentType C# (CSharp) Метод

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

public ContentType ( string contentType ) : Response
contentType string
Результат Response
        public Response ContentType(string contentType)
        {
            _contentType = contentType;

            return this;
        }

Usage Example

Пример #1
0
			public void SetUp()
			{
				_response = new Response(HttpStatusCode.OK);
				_response.ContentType("text/html");
			}
Response