Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Add an option to specify the max response size cached #25

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

JunTaoLuo
Copy link
Contributor

/// <summary>
/// The largest cacheable size for the response body in bytes.
/// </summary>
public int? MaximumCachedBodySize { get; set; }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we specify a default size? Also could consider the naming MaximumCacheableBodySize or MaximumBodySizeToCache.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long, not int?. Default to 1mb for starters?

@JunTaoLuo
Copy link
Contributor Author

🆙📅

@Tratcher
Copy link
Member

Tratcher commented Sep 1, 2016

FYI: It looks like MemoryStream.Dispose doesn't actually free the memory. You need to call SetLength and Capacity to shrink it.

@Tratcher
Copy link
Member

Tratcher commented Sep 2, 2016

:shipit:

@JunTaoLuo JunTaoLuo force-pushed the johluo/max-response-size branch from f17c732 to d72ef12 Compare September 2, 2016 18:58
@JunTaoLuo JunTaoLuo merged commit d72ef12 into dev Sep 2, 2016
@JunTaoLuo JunTaoLuo deleted the johluo/max-response-size branch September 2, 2016 18:59
@JunTaoLuo JunTaoLuo mentioned this pull request Sep 6, 2016
34 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants