Added .Header(..), .ContentType(..) to HttpResponse
ln.build - build0.waldrennach.l--n.de build job pending
Details
ln.build - build0.waldrennach.l--n.de build job pending
Details
parent
16dbf87c66
commit
c0ee1af74c
|
@ -115,7 +115,16 @@ namespace ln.http
|
||||||
get => HttpStatusCode.ToString();
|
get => HttpStatusCode.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HttpResponse Header(string name,string value)
|
||||||
|
{
|
||||||
|
SetHeader(name, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public HttpResponse ContentType(string contentType)
|
||||||
|
{
|
||||||
|
SetHeader("content-type", contentType);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static HttpResponse OK() => new HttpResponse(HttpStatusCode.OK);
|
public static HttpResponse OK() => new HttpResponse(HttpStatusCode.OK);
|
||||||
|
|
Loading…
Reference in New Issue