| | | 1 | | using System.Collections.Concurrent; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text; |
| | | 4 | | |
| | | 5 | | namespace WireMock |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// The response. |
| | | 9 | | /// </summary> |
| | | 10 | | public class ResponseMessage |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Gets the headers. |
| | | 14 | | /// </summary> |
| | 57 | 15 | | public IDictionary<string, string> Headers { get; set; } = new ConcurrentDictionary<string, string>(); |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets or sets the status code. |
| | | 19 | | /// </summary> |
| | 91 | 20 | | public int StatusCode { get; set; } = 200; |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the body. |
| | | 24 | | /// </summary> |
| | 3 | 25 | | public string BodyOriginal { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the body. |
| | | 29 | | /// </summary> |
| | 61 | 30 | | public string Body { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets the body encoding. |
| | | 34 | | /// </summary> |
| | 61 | 35 | | public Encoding BodyEncoding { get; set; } = new UTF8Encoding(false); |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The add header. |
| | | 39 | | /// </summary> |
| | | 40 | | /// <param name="name"> |
| | | 41 | | /// The name. |
| | | 42 | | /// </param> |
| | | 43 | | /// <param name="value"> |
| | | 44 | | /// The value. |
| | | 45 | | /// </param> |
| | | 46 | | public void AddHeader(string name, string value) |
| | 2 | 47 | | { |
| | 2 | 48 | | Headers.Add(name, value); |
| | 2 | 49 | | } |
| | | 50 | | } |
| | | 51 | | } |