class HAR::PostData

Overview

This object describes posted data, if any (embedded in Request object).

NOTE #text and #params fields are mutually exclusive.

Included Modules

Defined in:

har/post_data.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(mime_type : Nil | String = nil, params : Nil | Array(HAR::Param) = nil, text : Nil | String = nil, comment : Nil | String = nil) #

[View source]

Instance Method Detail

def comment : String | Nil #

A comment provided by the user or the application.


[View source]
def comment=(comment : String | Nil) #

A comment provided by the user or the application.


[View source]
def http_params : URI::Params #

[View source]
def http_params=(http_params : URI::Params) #

[View source]
def mime_type : String | Nil #

[View source]
def mime_type=(mime_type : String | Nil) #

[View source]
def params : Array(Param) | Nil #

List of posted parameters (in case of URL encoded parameters).


[View source]
def params=(params : Array(Param) | Nil) #

List of posted parameters (in case of URL encoded parameters).


[View source]
def text : String | Nil #

Plain text posted data.


[View source]
def text=(text : String | Nil) #

Plain text posted data.


[View source]