3.80Setting Custom Data
Created on Aug 25, 2026~1 min read
In certain special scenarios you may need to inject custom data into the HttpRequestBuilder object so that downstream internal components or interceptors can access it. Use the WithData method:
HttpRequestBuilder.Post("https://furion.net/") .WithData("somekey", "somedata");The stored data is kept in the httpRequestBuilder.Items dictionary and can be retrieved by key:
httpRequestBuilder.Items.TryGetValue("somekey", out var somedata);Note: the method can be called multiple times — a repeated key is overwritten with the latest value.