abstract class Crest::ParamsEncoder

Overview

Custom serializers

You can build your custom encoder, if you like. The value of params_encoder can be any Crest::ParamsEncoder object that responds to: #encode(Hash) #=> String

The encoder will affect both how Crest processes query strings and how it serializes POST bodies.

The default encoder is Crest::FlatParamsEncoder.

Direct Known Subclasses

Defined in:

crest/params_encoder.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.encode(params : Hash) : String #

[View source]

Instance Method Detail

abstract def encode(params : Hash) : String #

[View source]