| | | 1 | | using System.Text; |
| | | 2 | | |
| | | 3 | | namespace WireMock.Util |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// BodyData |
| | | 7 | | /// </summary> |
| | | 8 | | public class BodyData |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The body encoding. |
| | | 12 | | /// </summary> |
| | 93 | 13 | | public Encoding Encoding { get; set; } |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The body as string, this is defined when BodyAsString or BodyAsJson are not null. |
| | | 17 | | /// </summary> |
| | 135 | 18 | | public string BodyAsString { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The body (as JSON object). |
| | | 22 | | /// </summary> |
| | 110 | 23 | | public object BodyAsJson { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// The body (as bytearray). |
| | | 27 | | /// </summary> |
| | 86 | 28 | | public byte[] BodyAsBytes { get; set; } |
| | | 29 | | } |
| | | 30 | | } |