public static IAdvancedHttpBuilder WithContentEncoding(this IAdvancedHttpBuilder builder, Encoding encoding) { if (encoding == null) { return(builder); } builder.WithConfiguration(s => s.ContentEncoding = encoding); builder.WithAcceptCharSet(encoding); return(builder); }
public static IAdvancedHttpBuilder WithAcceptCharSet(this IAdvancedHttpBuilder builder, Encoding encoding) { return(builder.WithAcceptCharSet(encoding.WebName)); }