Skip to content

please make Response.Unmarshal to accept io.Reader #80

@isaacwein

Description

@isaacwein

Please make Response.Unmarshal to accept io.Reader
it is better for performance if the xml.decoder gets a large http repose, it can read it directly from the socket rather then converting the whole response body with io.ReadAll(resp.body) to memory and then passing it to the xml.decoder

this is how I need to do it now

body := []byte(`xml-rpc code`)

err = xmlrpc.Response(body).Unmarshal(&resData)

this is how it will be used after

body := strings.NewReader(`xml-rpc-code`)

err = xmlrpc.Response(body).Unmarshal(&resData)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions