public HttpRequestBuilder WithBody(FormDataContent body) { if (!this.result.Headers.ContainsKey("Content-Type")) { this.result.Headers.Add("Content-Type", body.GetMediaType()); } this.result.BodyBytes = body.Get(); return(this); }
public HttpRequestBuilder WithBody(FormDataContent formDataContent) { this.result.BodyBytes = formDataContent.Get(); return(this); }