Skip to content

HTTP response JSON depth should be configurable #291

@lextm

Description

@lextm

Currently the code in HttpResponse class chooses the default depth,

public class HttpResponse
{
    public int StatusCode { get; set; } = 200;
    public string StatusText { get; set; } = "OK";
    public string ContentType { get; set; } = "application/json";
    public string? Body { get; set; }
    public byte[]? BodyBytes { get; set; }

    public static HttpResponse Json(object data) => new()
    {
        Body = JsonSerializer.Serialize(data, new JsonSerializerOptions { WriteIndented = true })
    };

which is too small for WPF/Uno Platform apps when debugging complex apps.

wpf-labs reuses the same infrastructure so hope the upstream (this repo) can lead the design and implementation to resolve this limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions