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);
        }
Exemplo n.º 2
0
        public HttpRequestBuilder WithBody(FormDataContent formDataContent)
        {
            this.result.BodyBytes = formDataContent.Get();

            return(this);
        }