-
Notifications
You must be signed in to change notification settings - Fork 0
API Services IRequestService
Christophe SAUVEUR edited this page Nov 23, 2024
·
3 revisions
interface IRequestService
Request service interface
Since 2.0
public abstract function getRequestContentType(): ?string
Get the content-type used by the request (ex: application/json)
Since 2.0.1
null|string
public abstract function getRequestMethod(): RequestMethod
Get the method used by the request (ex: GET, POST...)
Since 2.0
RequestMethod
public abstract function getRootURL(): string
Get the root URL for the request
Since 2.0
string
public abstract function setAttachmentHeaders(string $filename, string $mimeType, string $charset = 'UTF-8', bool $addContentType = true): void
Sets the attachment headers to use in response to the request
Since 2.0
Name | Type | Description |
---|---|---|
$filename |
string |
Filename |
$mimeType |
string |
MIME type to assign to the response |
$charset |
string |
Charset to use (defaults to UTF-8) |
$addContentType |
bool |
Adds the Content-Type header if set (set by default) |
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license