File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 88
99namespace CefSharp
1010{
11- public class ResourceHandler
12- {
13- public string MimeType { get ; set ; }
14- public Stream Stream { get ; set ; }
15- public int StatusCode { get ; set ; }
16- public string StatusText { get ; set ; }
17- public NameValueCollection Headers { get ; set ; }
11+ public class ResourceHandler
12+ {
13+ public string MimeType { get ; set ; }
14+ public Stream Stream { get ; set ; }
15+ public int StatusCode { get ; set ; }
16+ public string StatusText { get ; set ; }
17+ public NameValueCollection Headers { get ; set ; }
1818
19- public ResourceHandler ( )
20- {
21- StatusCode = 200 ;
22- StatusText = "OK" ;
23- MimeType = "text/html" ;
24- }
19+ public ResourceHandler ( )
20+ {
21+ StatusCode = 200 ;
22+ StatusText = "OK" ;
23+ MimeType = "text/html" ;
24+ }
2525
26- public static ResourceHandler FromFileName ( string fileName )
27- {
28- return new ResourceHandler { Stream = File . OpenRead ( fileName ) } ;
29- }
26+ public static ResourceHandler FromFileName ( string fileName )
27+ {
28+ return new ResourceHandler { Stream = File . OpenRead ( fileName ) } ;
29+ }
3030
31- public static ResourceHandler FromString ( string text )
32- {
33- return new ResourceHandler { Stream = new MemoryStream ( Encoding . UTF8 . GetBytes ( text ) ) } ;
34- }
35- }
31+ public static ResourceHandler FromString ( string text )
32+ {
33+ return new ResourceHandler { Stream = new MemoryStream ( Encoding . UTF8 . GetBytes ( text ) ) } ;
34+ }
35+ }
3636}
You can’t perform that action at this time.
0 commit comments