1123Javayanglei/vscode-chat-proxy/shared does not have a README file

    FlowDetail

    pub(all) struct FlowDetail {
    id : Int
    start_ms : Double
    duration_ms : Int
    client_addr : String
    upstream : String
    intercepted : Bool
    injected : Bool
    pending : Bool
    error : String?
    request : RequestData
    upstream_request : UpstreamRequest?
    response : ResponseData?
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    Payload of GET /api/flows/<id>.

    FlowDetail::to_json

    automatically derived

    FlowSummary

    pub(all) struct FlowSummary {
    id : Int
    start_ms : Double
    http_method : String
    path : String
    status : Int
    reason : String
    intercepted : Bool
    injected : Bool
    pending : Bool
    error : String?
    req_size : Int
    resp_size : Int
    duration_ms : Int
    content_type : String
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    One row of the flow list (GET /api/flows).

    FlowSummary::to_json

    automatically derived

    FlowsResponse

    pub(all) struct FlowsResponse {
    total : Int
    injected_total : Int
    stored : Int
    capacity : Int
    flows : Array[FlowSummary]
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    Payload of GET /api/flows.

    FlowsResponse::to_json

    automatically derived

    RequestData

    pub(all) struct RequestData {
    http_method : String
    target : String
    headers : Array[(String, String)]
    body : String
    truncated : Bool
    size : Int
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    Request side of a flow detail.

    RequestData::to_json

    automatically derived

    ResponseData

    pub(all) struct ResponseData {
    status : Int
    reason : String
    headers : Array[(String, String)]
    body : String
    truncated : Bool
    size : Int
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    Response side of a flow detail.

    ResponseData::to_json

    automatically derived

    UpstreamRequest

    pub(all) struct UpstreamRequest {
    body : String
    truncated : Bool
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    The rewritten body actually forwarded upstream (only present when the system prefix was injected).

    UpstreamRequest::to_json

    automatically derived

    Source Files