enum SF::Http::Request::Method

Overview

Enumerate the available HTTP methods for a request

Defined in:

network/obj.cr

Enum Members

Get = 0

Request in get mode, standard method to retrieve a page

Post = 1

Request in post mode, usually to send data to a page

Head = 2

Request a page's header only

Put = 3

Request in put mode, useful for a REST API

Delete = 4

Request in delete mode, useful for a REST API

Instance Method Summary

Instance Method Detail

def delete? #

[View source]
def get? #

[View source]
def head? #

[View source]
def post? #

[View source]
def put? #

[View source]