From 299b21c608622f8155cafb728b5fdb1631253605 Mon Sep 17 00:00:00 2001 From: Christian Bernasconi Date: Wed, 2 May 2018 22:01:56 +0200 Subject: [PATCH] New public method to retrieve a response header value by the header name. --- src/RA/ResponseContext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/RA/ResponseContext.cs b/src/RA/ResponseContext.cs index d591bf1..00a4cd1 100644 --- a/src/RA/ResponseContext.cs +++ b/src/RA/ResponseContext.cs @@ -36,6 +36,13 @@ public ResponseContext(HttpStatusCode statusCode, string content, Dictionary + /// Retrieve the specified response header. + /// + /// The header name. + /// The header value. + public string RetrieveHeader(string name) => HeaderValue(name); + /// /// Retrieve an object from the response document. ///