目录

HttpContent

Interface Info

public interface HttpContent extends StreamingContent

Serializes the HTTP request content into an output stream.

Public Method Summary

Qualifier and Type

Method Name and Description

void

writeTo(OutputStream out)

Writes content to the output stream.

String

getType()

Obtains the content type.

Public Methods

[h2]writeTo

Method

void writeTo(OutputStream out) throws IOException

Writes content to the output stream.

Parameters

Name

Description

out

Output stream.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

[h2]getType

Method

String getType()

Obtains the content type.

Returns

Type

Description

String

Content type.