Skip to content
This repository was archived by the owner on Dec 3, 2026. It is now read-only.
xmidt-orgPublic archive

About

MOVED → github.com/rdkcentral/wrphttp

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

302 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrphttp

Important

This repository has moved and is archived. Development continues at https://github.com/rdkcentral/wrphttp. Please open issues and pull requests there.

wrphttp provides a library implementing helper utilities for working with WRP messages over HTTP.

Apache V2 License GitHub Release GoDoc

Table of Contents

Code of Conduct

This project and everyone participating in it are governed by the XMiDT Code Of Conduct. By participating, you agree to this Code.

Examples

To use the wrphttp library, it first should be added as an import in the file you plan to use it. Examples can be found at the top of the GoDoc.

Working with wrp-go/v3

wrphttp interoperates with github.com/xmidt-org/wrp-go/v3/wrphttp.

Receiving: every form a wrp-go/v3 peer sends is decoded. wrp-go/v3 accepts any field on any message type, but the standard WRP validation doesn't. If you receive such messages, pass wrp.NoStandardValidation() to DecodeRequest or DecodeResponse.

Sending: the default options produce messages a wrp-go/v3 peer can read. Don't use these with a wrp-go/v3 peer:

  • more than one message per request or response
  • AsJSONL or AsMsgpackL
  • EncodeGzip, EncodeDeflate or EncodeZlib
  • AsOctetStream with a style other than the default X-Webpa

A wrp-go/v3 server only reads header form (AsOctetStream) when it uses DecodeEntityFromSources(_, true).

The compat module tests all of this against wrp-go/v3.

Contributing

Refer to CONTRIBUTING.md.

About

MOVED → github.com/rdkcentral/wrphttp

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages