Advertisement
why_where_what

HttpResponseStatusCode-Extension

Sep 29th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2. using SIS.HTTP.Enums;
  3.  
  4. namespace SIS.HTTP.Extensions
  5. {
  6.     public static class HttpResponseStatusExtensions
  7.     {
  8.         public static string GetResponseLine(this HttpResponseStatusCode statusCode)
  9.         {
  10.             return $"{(int)statusCode} {statusCode.ToString()}";
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement