// Copyright © WireMock.Net using System; using System.Collections.Generic; using WireMock.Matchers; using WireMock.Util; namespace WireMock.RequestBuilders; /// /// The BodyRequestBuilder interface. /// public interface IBodyRequestBuilder : IMultiPartRequestBuilder { /// /// WithBody: IMatcher /// /// The matcher. /// The . IRequestBuilder WithBody(IMatcher matcher); /// /// WithBody: IMatcher[] /// /// The matchers. /// The to use. /// The . IRequestBuilder WithBody(IMatcher[] matchers, MatchOperator matchOperator = MatchOperator.Or); /// /// WithBody: Body as string /// /// The body. /// The match behaviour. /// The . IRequestBuilder WithBody(string body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch); /// /// WithBody: Body as byte[] /// /// The body. /// The match behaviour. /// The . IRequestBuilder WithBody(byte[] body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch); /// /// WithBody: Body as object /// /// The body. /// The match behaviour [default is AcceptOnMatch]. /// The . IRequestBuilder WithBody(object body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch); /// /// WithBodyAsJson: A JsonMatcher will be used to match this object. /// /// The body. /// The match behaviour [default is AcceptOnMatch]. /// A . IRequestBuilder WithBodyAsJson(object body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch); /// /// WithBody: func (string) /// /// The function. /// The . IRequestBuilder WithBody(Func func); /// /// WithBody: func (byte[]) /// /// The function. /// The . IRequestBuilder WithBody(Func func); /// /// WithBody: func (json object) /// /// The function. /// The . IRequestBuilder WithBody(Func func); /// /// WithBody: func (type) /// /// The type. /// The function. /// The . IRequestBuilder WithBodyAsType(Func func); /// /// WithBody: func (BodyData object) /// /// The function. /// The . IRequestBuilder WithBody(Func func); /// /// WithBody: Body as form-urlencoded values. /// /// The form-urlencoded values. /// The . IRequestBuilder WithBody(Func?, bool> func); }