Wolfram 언어

클라우드 및 웹 인터페이스

Wolfram Engine 클라우드 서버 시뮬레이션

Wolfram Cloud를 위한 웹 개발의 대부분은 클라우드에 아무것도 업로드 하지 않고도 수행할 수 있습니다. Delayed, FormFunction, APIFunction 등의 함수의 동작은 GenerateHTTPResponse 함수를 사용해 볼 수 있습니다. 상태 코드, 컨텐츠 유형, 헤더, 바디 등 HTTPResponse의 모든 내용은 조사 가능합니다. 이 기능을 통해 웹 함수의 자동화된 테스트 도구를 손쉽게 쓰고, 변경하고, 테스트할 수 있습니다. HTTPResponse 개요 상자의 상태 디스크를 클릭하여 응답 또한 로컬 웹 브라우저에서 확인할 수있습니다.

사용자에게 가장 가까운 7개의 산에 대한 정보표를 구축한 Delayed 클라우드 개체에 대한 요청을 시뮬레이션합니다.

In[1]:=
Click for copyable input
response = GenerateHTTPResponse[ Delayed[Map[ Composition[ Replace[#, {n_, el_, r_, pos_} :> {n, ToString[Round[el]], StringJoin[ Riffle[Switch[r, {_String ..}, r, _List, CommonName[r], _, r], ", "]], ToString[GeoDistance[$GeoLocation, pos]], ToString@Latitude[pos], ToString@Longitude[pos]}] &, MountainData[#, {"Name", "Elevation", "MountainRange", "Position"}] &], GeoNearest["Mountain", $GeoLocation, 7]], "CSV"] ]
Out[1]=

상태를 나타내는 녹색 동그라미를 클릭하여 응답의 로컬 복사본을 열 수 있습니다.

In[2]:=
Click for copyable input
\!\(\* GraphicsBox[ TagBox[RasterBox[CompressedData[" 1:eJztXTGvNbdxvUgalfkLLl2qi8qkS+sgjTo7cYwggAPYAYLArbr8BbcqXbpI ofaVLv0XXKb8ys2Tn7yiODNnDofcXXJ3DiiBj5cczpwZcmf57d37o5/9x0/+ 9a9er9evP3v/309++l9/96tf/fS///Fv3v/4p1/++t9+8cuf/8s//PI/f/6L n//qb3/21++N//P+3/++9/+2/s0f/+/rRCKRSCQSCQMfqcK/JxKJRCKRSGjY U4Vt2z59+nTc/9+n+Optey+/+Wb7qGR9zvqPv/rT5To8Wf9n1t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D3VT0EHflLQaFGt+j08F6mqq6EbFXuqUKKU g6NLetaaqIdzV3+pbWwW4Flsi+u71ummDSRXfwblri6jrvrIapQgA5iJapKE ztAqgTnBOqsddupc862e1RTlcMZql0Z1lNtogX9WYfOMdWffGbNElR2A5GnJ nOpUIWxdPzk8e+Geqq9H2YI1DKwvJs6lKLcD1rOpEeuP1etcQS+BUUatGEiM U1y4h+07z7jRAghgJmj5fWMgV60nLaBlHyW14nuCKQaG/aEEtvqaH4t549ea 1flyMsPPKrxWSBVKgJ7uqKodi7LUC2wmTY4GGrqqlsCbNmiUffBcrqcw567+ QJ9A5Fh2WSR0BiqQOWEgAeVJhKMONJKj3DDeoOGgorqV56qTE9lBtZRvBJPy y9ZqVEcNIbDs32oXaG/iTbXakjYnmbFThVdjnnD5qQKeKDbKEmX1xGEzqpGf yEJsg5Id3Il4znmZ2+hTBRXHRS+ebv5AYhyk4papQkClEoumCoGeA31aYuCp gru/YTIrYPlzkhk7VXitlioEdkW1sXR0k3fONDCww5cI/ANEZ3DGTMb6q51J ZlrX3cMDqSm6LJBR1+mjpqi2Gl3PMt2siUoM/6fAEzjpD/vhBAJDYsb2iLJ0 np/MmU8VdjZITqqeZSMzERi1FX5xJx01l2u1auymRUJsfWFKKzWwzip4HqSN rfpLOcAiSx91eNVCSmbMt7TFVlQDgVNe4wIJ68+AjDrVuqpRdog1ArGyjgPA VVtF7LVUo8x3OXEHyp6bQRQe1U8grzMgs0cUlsNIkz23c8nM34BIVFj9bair 6M8sz+dgFa+diVtycmbY35LAEmeSmb8Bkaiw+vqaWX/3PuWxmNlrV+E2nFwV 9rchsMRVZJ78GxCJ+bH6+ppcf/7E71GY3GuX4E6cXBL2dyKwxCVk7qnCCXhL JBKJRCKxGv4foOz+fw== "], {{0, 139}, {697, 0}}, {0, 255}, ColorFunction->RGBColor], BoxForm`ImageTag["Byte", ColorSpace -> "RGB", Interleaving -> True], Selectable->False], DefaultBaseStyle->"ImageGraphics", ImageSize->Automatic, ImageSizeRaw->{697, 139}, PlotRange->{{0, 697}, {0, 139}}]\)

APIFunction에 대한 요청을 시뮬레이션합니다.

In[3]:=
Click for copyable input
response = GenerateHTTPResponse[ APIFunction["ticker" -> "TickerSymbol", EntityValue[#ticker, EntityProperty["Financial", "Last"]] &], <| "Query" -> {"ticker" -> "FDX"}|>]
Out[3]=

응답의 일부를 조사합니다.

In[4]:=
Click for copyable input
response[{"StatusCode", "ContentType", "Body"}]
Out[4]=

잘못된 입력에 대한 응답을 테스트합니다.

In[5]:=
Click for copyable input
response = GenerateHTTPResponse[ APIFunction["ticker" -> "TickerSymbol", EntityValue[#ticker, EntityProperty["Financial", "Last"]] &, {"WL", None, "WL"}], <| "Query" -> {"ticker" -> "134"}|>]
Out[5]=

오류 응답의 바디를 조사합니다.

In[6]:=
Click for copyable input
response["Body"]
Out[6]=

관련 예제

de en es fr ja pt-br ru zh