GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.Enums.HttpVerb Struct Reference

HttpMethod is a struct that acts like a string but also an enum for some intellisense help. Users may use the enum like values: Get, Post, Put, Patch, Delete, Head, Options, or enter any arbitrary method. More...

Public Member Functions

override string ToString ()

Static Public Member Functions

static implicit operator HttpVerb (string method)
static implicit operator string (HttpVerb method)

Static Public Attributes

static readonly HttpVerb Get = new HttpVerb("GET")
static readonly HttpVerb Post = new HttpVerb("POST")
static readonly HttpVerb Put = new HttpVerb("PUT")
static readonly HttpVerb Patch = new HttpVerb("PATCH")
static readonly HttpVerb Delete = new HttpVerb("DELETE")
static readonly HttpVerb Head = new HttpVerb("HEAD")
static readonly HttpVerb Options = new HttpVerb("OPTIONS")

Detailed Description

HttpMethod is a struct that acts like a string but also an enum for some intellisense help. Users may use the enum like values: Get, Post, Put, Patch, Delete, Head, Options, or enter any arbitrary method.

Definition at line 208 of file Enums.cs.

Member Function Documentation

◆ operator HttpVerb()

implicit GenerallyPositive.Enums.HttpVerb.operator HttpVerb ( string method)
static

Definition at line 222 of file Enums.cs.

◆ operator string()

implicit GenerallyPositive.Enums.HttpVerb.operator string ( HttpVerb method)
static

Definition at line 225 of file Enums.cs.

◆ ToString()

override string GenerallyPositive.Enums.HttpVerb.ToString ( )

Definition at line 228 of file Enums.cs.

Member Data Documentation

◆ Delete

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Delete = new HttpVerb("DELETE")
static

Definition at line 216 of file Enums.cs.

◆ Get

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Get = new HttpVerb("GET")
static

Definition at line 212 of file Enums.cs.

◆ Head

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Head = new HttpVerb("HEAD")
static

Definition at line 217 of file Enums.cs.

◆ Options

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Options = new HttpVerb("OPTIONS")
static

Definition at line 218 of file Enums.cs.

◆ Patch

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Patch = new HttpVerb("PATCH")
static

Definition at line 215 of file Enums.cs.

◆ Post

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Post = new HttpVerb("POST")
static

Definition at line 213 of file Enums.cs.

◆ Put

readonly HttpVerb GenerallyPositive.Enums.HttpVerb.Put = new HttpVerb("PUT")
static

Definition at line 214 of file Enums.cs.


The documentation for this struct was generated from the following file: