| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using WireMock.Admin.Mappings; |
| | | 3 | | using WireMock.Util; |
| | | 4 | | |
| | | 5 | | namespace WireMock.Admin.Requests |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Response MessageModel |
| | | 9 | | /// </summary> |
| | | 10 | | public class LogResponseModel |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Gets or sets the status code. |
| | | 14 | | /// </summary> |
| | 118 | 15 | | public int StatusCode { get; set; } = 200; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets the headers. |
| | | 19 | | /// </summary> |
| | 66 | 20 | | public IDictionary<string, WireMockList<string>> Headers { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the body destination (SameAsSource, String or Bytes). |
| | | 24 | | /// </summary> |
| | 57 | 25 | | public string BodyDestination { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// The body (as string). |
| | | 29 | | /// </summary> |
| | 57 | 30 | | public string Body { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The body (as JSON object). |
| | | 34 | | /// </summary> |
| | 66 | 35 | | public object BodyAsJson { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The body (as bytearray). |
| | | 39 | | /// </summary> |
| | 57 | 40 | | public byte[] BodyAsBytes { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the body as file. |
| | | 44 | | /// </summary> |
| | 58 | 45 | | public string BodyAsFile { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Is the body as file cached? |
| | | 49 | | /// </summary> |
| | 58 | 50 | | public bool? BodyAsFileIsCached { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets or sets the original body. |
| | | 54 | | /// </summary> |
| | 57 | 55 | | public string BodyOriginal { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets the body. |
| | | 59 | | /// </summary> |
| | 66 | 60 | | public EncodingModel BodyEncoding { get; set; } |
| | | 61 | | } |
| | | 62 | | } |