PHP 인터페이스 Essence\Http\Client

파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 0 사용 예제들

공개 메소드들

메소드 설명
get ( string $url ) : string Retrieves contents from the given URL.
setUserAgent ( string $agent ) Sets the user agent for HTTP requests.

메소드 상세

get() 공개 메소드

Retrieves contents from the given URL.
public get ( string $url ) : string
$url string The URL fo fetch contents from.
리턴 string The contents.

setUserAgent() 공개 메소드

Sets the user agent for HTTP requests.
public setUserAgent ( string $agent )
$agent string User agent.