using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
namespace WireMock
{
///
/// The response.
///
public class ResponseMessage
{
///
/// Gets the headers.
///
public IDictionary Headers { get; set; } = new ConcurrentDictionary();
///
/// Gets or sets the status code.
///
public int StatusCode { get; set; } = 200;
///
/// Gets or sets the body.
///
public string BodyOriginal { get; set; }
///
/// Gets or sets the body.
///
public string Body { get; set; }
///
/// Gets or sets the body encoding.
///
public Encoding BodyEncoding { get; set; } = new UTF8Encoding(false);
///
/// The add header.
///
///
/// The name.
///
///
/// The value.
///
public void AddHeader(string name, string value)
{
Headers.Add(name, value);
}
}
}