RestLink 2.2.0
Powerfull Rest Client for Qt
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
RestLink::HttpUtils Class Reference

Utility class providing helper functions for HTTP-related operations. More...

#include <httputils.h>

Static Public Member Functions

static QString verbString (AbstractRequestHandler::Method method)
 Converts an HTTP method enum to its string representation.
 
static QString reasonPhrase (int code)
 Returns the standard reason phrase for a given HTTP status code.
 

Detailed Description

Utility class providing helper functions for HTTP-related operations.

This class offers static methods to convert HTTP methods to strings and retrieve reason phrases for HTTP status codes.

Member Function Documentation

◆ verbString()

QString RestLink::HttpUtils::verbString ( AbstractRequestHandler::Method  method)
static

Converts an HTTP method enum to its string representation.

Parameters
methodThe HTTP method as defined in RequestHandler::Method.
Returns
The corresponding HTTP verb as a QString (e.g., "GET", "POST").

◆ reasonPhrase()

QString RestLink::HttpUtils::reasonPhrase ( int  code)
static

Returns the standard reason phrase for a given HTTP status code.

Parameters
codeThe HTTP status code (e.g., 200, 404).
Returns
The reason phrase associated with the status code.