glitchedhttps
Enumerations | Functions
glitchedhttps_method.h File Reference

HTTP Method to use for a glitchedhttps_request. More...

#include <stddef.h>
#include "glitchedhttps_api.h"
Include dependency graph for glitchedhttps_method.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  glitchedhttps_method {
  GLITCHEDHTTPS_GET = 0 , GLITCHEDHTTPS_HEAD = 1 , GLITCHEDHTTPS_POST = 2 , GLITCHEDHTTPS_PATCH = 3 ,
  GLITCHEDHTTPS_PUT = 4 , GLITCHEDHTTPS_DELETE = 5 , GLITCHEDHTTPS_CONNECT = 6 , GLITCHEDHTTPS_OPTIONS = 7 ,
  GLITCHEDHTTPS_TRACE = 8
}
 HTTP Method to use for a glitchedhttps_request. More...
 

Functions

GLITCHEDHTTPS_API int glitchedhttps_method_to_string (enum glitchedhttps_method method, char *out, size_t out_size)
 

Detailed Description

HTTP Method to use for a glitchedhttps_request.

Enumeration Type Documentation

◆ glitchedhttps_method

Function Documentation

◆ glitchedhttps_method_to_string()

GLITCHEDHTTPS_API int glitchedhttps_method_to_string ( enum glitchedhttps_method  method,
char *  out,
size_t  out_size 
)

Converts a glitchedhttps_method enum name to string.

Make sure that you allocate at least a nice and sufficient char[8] for the out argument.

Parameters
methodThe glitchedhttps_method to stringify.
outThe out string into which to strcpy() the result (make sure to allocate at least 8 bytes).
out_sizeThe size of the output char* buffer (must be greater than or equals 8).
Returns
Whether the passed glitchedhttps_method was converted to string successfully or not.