Skip to content

[Bug]: http-client-java, unbranded, response as wired type Base64, Base64Uri #6075

Open
@weidongxu-microsoft

Description

@weidongxu-microsoft

Describe the bug

azure supports this in RestProxy as

        @ReturnValueWireType(Base64Url.class)
        Mono<Response<List<byte[]>>> getBase64Url(@HostParam("$host") String host, @HeaderParam("Accept") String accept,
            Context context);

@ReturnValueWireType would handle the de-serialization.


In clientcore, Base64Uri would work after we add returnValueWireType = Base64Uri.class.

However, byte[] with Base64 encode is not handled.

Reproduction

http-specs test

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingemitter:client:javaIssue for the Java client emitter: @typespec/http-client-java

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions